@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Get all single sign-on sessions with the given type. " + MESSAGE_FEATURE_SUPPORTED_TICKET_REGISTRY,
        parameters = {
            @Parameter(name = "type", in = ParameterIn.QUERY, description = "Type of sessions to retrieve (ALL, DIRECT, PROXIED)"),
            @Parameter(name = "username", in = ParameterIn.QUERY, description = "Username assigned to each session"),
            @Parameter(name = "from", schema = @Schema(type = "integer"), in = ParameterIn.QUERY, description = "Starting position/index of the query"),
            @Parameter(name = "count", schema = @Schema(type = "integer"), in = ParameterIn.QUERY, description = "Total number of sessions to return")
        })
    public Map<String, Object> getSsoSessions(
        @ModelAttribute final @Valid SsoSessionsRequest ssoSessionsRequest) {
        val sessionsMap = new HashMap<String, Object>();
        val activeSsoSessions = getActiveSsoSessions(ssoSessionsRequest).toList();
        sessionsMap.put("activeSsoSessions", activeSsoSessions);
        sessionsMap.put("totalSsoSessions", ticketRegistryProvider.getObject().sessionCount());
        return sessionsMap;
    }
Gets sso sessions.

@param ssoSessionsRequest the request
@return the sso sessions
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java