Uses of Interface
org.keycloak.models.UserSessionModel
Packages that use UserSessionModel
Package
Description
-
Uses of UserSessionModel in org.keycloak.authentication
Fields in org.keycloak.authentication declared as UserSessionModelMethods in org.keycloak.authentication that return UserSessionModelMethods in org.keycloak.authentication with parameters of type UserSessionModelModifier and TypeMethodDescriptionstatic ClientSessionContextAuthenticationProcessor.attachSession(AuthenticationSessionModel authSession, UserSessionModel userSession, KeycloakSession session, RealmModel realm, ClientConnection connection, EventBuilder event) voidAuthenticationFlowContext.attachUserSession(UserSessionModel userSession) voidAuthenticationProcessor.Result.attachUserSession(UserSessionModel userSession) -
Uses of UserSessionModel in org.keycloak.authentication.authenticators.util
Methods in org.keycloak.authentication.authenticators.util with parameters of type UserSessionModelModifier and TypeMethodDescriptionstatic voidAuthenticatorUtils.updateCompletedExecutions(AuthenticationSessionModel authSession, UserSessionModel userSession, String executionId) Update the completed authenticators note on the new auth session -
Uses of UserSessionModel in org.keycloak.broker.oidc
Methods in org.keycloak.broker.oidc with parameters of type UserSessionModelModifier and TypeMethodDescriptionvoidOIDCIdentityProvider.backchannelLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) protected voidOIDCIdentityProvider.backchannelLogout(UserSessionModel userSession, String idToken) voidAbstractOAuth2IdentityProvider.exchangeExternalComplete(UserSessionModel userSession, BrokeredIdentityContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> params) jakarta.ws.rs.core.ResponseAbstractOAuth2IdentityProvider.exchangeFromToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject, jakarta.ws.rs.core.MultivaluedMap<String, String> params) protected jakarta.ws.rs.core.ResponseAbstractOAuth2IdentityProvider.exchangeSessionToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) protected jakarta.ws.rs.core.ResponseOIDCIdentityProvider.exchangeSessionToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) protected jakarta.ws.rs.core.ResponseAbstractOAuth2IdentityProvider.exchangeStoredToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) protected jakarta.ws.rs.core.ResponseOIDCIdentityProvider.exchangeStoredToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) protected jakarta.ws.rs.core.ResponseAbstractOAuth2IdentityProvider.hasExternalExchangeToken(EventBuilder event, UserSessionModel tokenUserSession, jakarta.ws.rs.core.MultivaluedMap<String, String> params) check to see if we have a token exchange in session in other words check to see if this session was created by an external exchangejakarta.ws.rs.core.ResponseOIDCIdentityProvider.keycloakInitiatedBrowserLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) OIDCIdentityProvider.refreshTokenForLogout(KeycloakSession session, UserSessionModel userSession) Returns access token response as a string from a refresh token invocation on the remote OIDC broker -
Uses of UserSessionModel in org.keycloak.broker.provider
Methods in org.keycloak.broker.provider with parameters of type UserSessionModelModifier and TypeMethodDescriptionvoidBrokeredIdentityContext.addSessionNotesToUserSession(UserSessionModel userSession) voidAbstractIdentityProvider.backchannelLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) voidIdentityProvider.backchannelLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) protected jakarta.ws.rs.core.ResponseAbstractIdentityProvider.exchangeErrorResponse(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession, String errorCode, String reason) voidExchangeExternalToken.exchangeExternalComplete(UserSessionModel userSession, BrokeredIdentityContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> params) jakarta.ws.rs.core.ResponseExchangeTokenToIdentityProviderToken.exchangeFromToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject, jakarta.ws.rs.core.MultivaluedMap<String, String> params) jakarta.ws.rs.core.ResponseAbstractIdentityProvider.exchangeNotLinked(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) jakarta.ws.rs.core.ResponseAbstractIdentityProvider.exchangeNotLinkedNoStore(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) jakarta.ws.rs.core.ResponseAbstractIdentityProvider.exchangeTokenExpired(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) protected StringAbstractIdentityProvider.getLinkingUrl(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession) jakarta.ws.rs.core.ResponseAbstractIdentityProvider.keycloakInitiatedBrowserLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) jakarta.ws.rs.core.ResponseIdentityProvider.keycloakInitiatedBrowserLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) Called when a Keycloak application initiates a logout through the browser. -
Uses of UserSessionModel in org.keycloak.broker.saml
Methods in org.keycloak.broker.saml with parameters of type UserSessionModelModifier and TypeMethodDescriptionvoidSAMLIdentityProvider.backchannelLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) protected LogoutRequestTypeSAMLIdentityProvider.buildLogoutRequest(UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, String singleLogoutServiceUrl, SamlProtocolExtensionsAwareBuilder.NodeGenerator... extensions) jakarta.ws.rs.core.ResponseSAMLIdentityProvider.keycloakInitiatedBrowserLogout(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) -
Uses of UserSessionModel in org.keycloak.device
Methods in org.keycloak.device with parameters of type UserSessionModelModifier and TypeMethodDescriptionstatic voidDeviceActivityManager.attachDevice(UserSessionModel userSession, KeycloakSession session) Attaches a device to the givenuserSessionwhere the device information is obtained from theHttpHeaders.USER_AGENTin the current request, if available.static DeviceRepresentationDeviceActivityManager.getCurrentDevice(UserSessionModel userSession) Returns the device information associated with the givenuserSession. -
Uses of UserSessionModel in org.keycloak.events
Methods in org.keycloak.events with parameters of type UserSessionModel -
Uses of UserSessionModel in org.keycloak.models
Subinterfaces of UserSessionModel in org.keycloak.modelsModifier and TypeInterfaceDescriptioninterfaceHacked extension to UserSessionModel so that user id can be obtain directly soMethods in org.keycloak.models that return UserSessionModelModifier and TypeMethodDescriptionUserSessionProvider.createOfflineUserSession(UserSessionModel userSession) Newly created userSession won't contain attached AuthenticatedClientSessionsUserSessionProvider.createUserSession(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState) Creates a new user session with the given parameters.default UserSessionModelUserSessionProvider.createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) Deprecated.UserSessionProvider.getOfflineUserSession(RealmModel realm, String userSessionId) UserSessionProvider.getOfflineUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) Deprecated.Instead of this method, useUserSessionProvider.getOfflineUserSessionByBrokerUserIdStream(RealmModel, String)to first get the sessions of a user, and then filter by the broker session ID as needed.AuthenticatedClientSessionModel.getUserSession()UserSessionProvider.getUserSession(RealmModel realm, String id) UserSessionProvider.getUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) UserSessionProvider.getUserSessionWithPredicate(RealmModel realm, String id, boolean offline, Predicate<UserSessionModel> predicate) Return userSession of specified ID as long as the predicate passes.Methods in org.keycloak.models that return types with arguments of type UserSessionModelModifier and TypeMethodDescriptionUserSessionProvider.getOfflineUserSessionByBrokerUserIdStream(RealmModel realm, String brokerUserId) Obtains the offline user sessions associated with the user that matches the specifiedbrokerUserId.UserSessionProvider.getOfflineUserSessionsStream(RealmModel realm, ClientModel client, Integer firstResult, Integer maxResults) Obtains the offline user sessions associated with the specified client, starting from thefirstResultand containing at mostmaxResults.UserSessionProvider.getOfflineUserSessionsStream(RealmModel realm, UserModel user) Obtains the offline user sessions associated with the specified user.UserSessionProvider.getUserSessionByBrokerUserIdStream(RealmModel realm, String brokerUserId) Obtains the online user sessions associated with the user that matches the specifiedbrokerUserId.UserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client) Obtains the online user sessions associated with the specified client.UserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client, Integer firstResult, Integer maxResults) Obtains the online user sessions associated with the specified client, starting from thefirstResultand containing at mostmaxResults.UserSessionProvider.getUserSessionsStream(RealmModel realm, UserModel user) Obtains the online user sessions associated with the specified user.Methods in org.keycloak.models with parameters of type UserSessionModelModifier and TypeMethodDescriptionUserSessionProvider.createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession) UserSessionProvider.createOfflineClientSession(AuthenticatedClientSessionModel clientSession, UserSessionModel offlineUserSession) Will automatically attach newly created offline client session to the offlineUserSessionUserSessionProvider.createOfflineUserSession(UserSessionModel userSession) Newly created userSession won't contain attached AuthenticatedClientSessionsUserSessionProvider.getClientSession(UserSessionModel userSession, ClientModel client, String clientSessionId, boolean offline) default AuthenticatedClientSessionModelUserSessionProvider.getClientSession(UserSessionModel userSession, ClientModel client, UUID clientSessionId, boolean offline) Deprecated.voidUserSessionProvider.removeOfflineUserSession(RealmModel realm, UserSessionModel userSession) Removes the attached clientSessions as wellvoidUserSessionProvider.removeUserSession(RealmModel realm, UserSessionModel session) This will remove attached ClientLoginSessionModels tooMethod parameters in org.keycloak.models with type arguments of type UserSessionModelModifier and TypeMethodDescriptionUserSessionProvider.getUserSessionWithPredicate(RealmModel realm, String id, boolean offline, Predicate<UserSessionModel> predicate) Return userSession of specified ID as long as the predicate passes.voidUserSessionProvider.importUserSessions(Collection<UserSessionModel> persistentUserSessions, boolean offline) Triggered by persister during pre-load. -
Uses of UserSessionModel in org.keycloak.models.jpa.session
Methods in org.keycloak.models.jpa.session that return UserSessionModelModifier and TypeMethodDescriptionJpaUserSessionPersisterProvider.loadUserSession(RealmModel realm, String userSessionId, boolean offline) Methods in org.keycloak.models.jpa.session that return types with arguments of type UserSessionModelModifier and TypeMethodDescriptionJpaUserSessionPersisterProvider.loadUserSessionsStream(Integer firstResult, Integer maxResults, boolean offline, String lastUserSessionId) JpaUserSessionPersisterProvider.loadUserSessionsStream(RealmModel realm, ClientModel client, boolean offline, Integer firstResult, Integer maxResults) JpaUserSessionPersisterProvider.loadUserSessionsStream(RealmModel realm, UserModel user, boolean offline, Integer firstResult, Integer maxResults) Methods in org.keycloak.models.jpa.session with parameters of type UserSessionModelModifier and TypeMethodDescriptionvoidJpaUserSessionPersisterProvider.createUserSession(UserSessionModel userSession, boolean offline) JpaUserSessionPersisterProvider.loadClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, boolean offline) -
Uses of UserSessionModel in org.keycloak.models.session
Classes in org.keycloak.models.session that implement UserSessionModelMethods in org.keycloak.models.session that return UserSessionModelModifier and TypeMethodDescriptionPersistentAuthenticatedClientSessionAdapter.getUserSession()DisabledUserSessionPersisterProvider.loadUserSession(RealmModel realm, String userSessionId, boolean offline) UserSessionPersisterProvider.loadUserSession(RealmModel realm, String userSessionId, boolean offline) Loads the user session with the given userSessionId.Methods in org.keycloak.models.session that return types with arguments of type UserSessionModelModifier and TypeMethodDescriptionDisabledUserSessionPersisterProvider.loadUserSessionsStream(Integer firstResult, Integer maxResults, boolean offline, String lastUserSessionId) DisabledUserSessionPersisterProvider.loadUserSessionsStream(RealmModel realm, ClientModel client, boolean offline, Integer firstResult, Integer maxResults) DisabledUserSessionPersisterProvider.loadUserSessionsStream(RealmModel realm, UserModel user, boolean offline, Integer firstResult, Integer maxResults) UserSessionPersisterProvider.loadUserSessionsStream(Integer firstResult, Integer maxResults, boolean offline, String lastUserSessionId) Called during startup.UserSessionPersisterProvider.loadUserSessionsStream(RealmModel realm, ClientModel client, boolean offline, Integer firstResult, Integer maxResults) Loads the user sessions for the givenClientModelin the givenRealmModelif present.UserSessionPersisterProvider.loadUserSessionsStream(RealmModel realm, UserModel user, boolean offline, Integer firstResult, Integer maxResults) Loads the user sessions for the givenUserModelin the givenRealmModelif present.Methods in org.keycloak.models.session with parameters of type UserSessionModelModifier and TypeMethodDescriptionvoidDisabledUserSessionPersisterProvider.createUserSession(UserSessionModel userSession, boolean offline) voidUserSessionPersisterProvider.createUserSession(UserSessionModel userSession, boolean offline) DisabledUserSessionPersisterProvider.loadClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, boolean offline) UserSessionPersisterProvider.loadClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession, boolean offline) Loads client session from the db by provided user session and client.voidPersistentAuthenticatedClientSessionAdapter.setUserSession(UserSessionModel userSession) Constructors in org.keycloak.models.session with parameters of type UserSessionModelModifierConstructorDescriptionPersistentAuthenticatedClientSessionAdapter(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession) -
Uses of UserSessionModel in org.keycloak.models.sessions.infinispan
Classes in org.keycloak.models.sessions.infinispan that implement UserSessionModelMethods in org.keycloak.models.sessions.infinispan that return UserSessionModelModifier and TypeMethodDescriptionInfinispanUserSessionProvider.createOfflineUserSession(UserSessionModel userSession) InfinispanUserSessionProvider.createUserSession(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState) InfinispanUserSessionProvider.getOfflineUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) AuthenticatedClientSessionAdapter.getUserSession()InfinispanUserSessionProvider.getUserSession(RealmModel realm, String id) InfinispanUserSessionProvider.getUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) InfinispanUserSessionProvider.getUserSessionWithPredicate(RealmModel realm, String id, boolean offline, Predicate<UserSessionModel> predicate) Methods in org.keycloak.models.sessions.infinispan that return types with arguments of type UserSessionModelModifier and TypeMethodDescriptionInfinispanUserSessionProvider.getOfflineUserSessionByBrokerUserIdStream(RealmModel realm, String brokerUserId) InfinispanUserSessionProvider.getOfflineUserSessionsStream(RealmModel realm, ClientModel client, Integer first, Integer max) InfinispanUserSessionProvider.getOfflineUserSessionsStream(RealmModel realm, UserModel user) Consumers.UserSessionModelsConsumer.getSessions()InfinispanUserSessionProvider.getUserSessionByBrokerUserIdStream(RealmModel realm, String brokerUserId) InfinispanUserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client) InfinispanUserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client, Integer firstResult, Integer maxResults) protected Stream<UserSessionModel>InfinispanUserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client, Integer firstResult, Integer maxResults, boolean offline) protected Stream<UserSessionModel>InfinispanUserSessionProvider.getUserSessionsStream(RealmModel realm, UserSessionPredicate predicate, boolean offline) InfinispanUserSessionProvider.getUserSessionsStream(RealmModel realm, UserModel user) Methods in org.keycloak.models.sessions.infinispan with parameters of type UserSessionModelModifier and TypeMethodDescriptionInfinispanUserSessionProvider.createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession) InfinispanUserSessionProvider.createOfflineClientSession(AuthenticatedClientSessionModel clientSession, UserSessionModel offlineUserSession) InfinispanUserSessionProvider.createOfflineUserSession(UserSessionModel userSession) InfinispanUserSessionProvider.getClientSession(UserSessionModel userSession, ClientModel client, String clientSessionId, boolean offline) protected UserSessionAdapterInfinispanUserSessionProvider.importUserSession(UserSessionModel userSession, boolean offline) voidInfinispanUserSessionProvider.removeOfflineUserSession(RealmModel realm, UserSessionModel userSession) voidInfinispanUserSessionProvider.removeUserSession(RealmModel realm, UserSessionModel session) Method parameters in org.keycloak.models.sessions.infinispan with type arguments of type UserSessionModelModifier and TypeMethodDescriptionInfinispanUserSessionProvider.getUserSessionWithPredicate(RealmModel realm, String id, boolean offline, Predicate<UserSessionModel> predicate) voidInfinispanUserSessionProvider.importUserSessions(Collection<UserSessionModel> persistentUserSessions, boolean offline) Constructors in org.keycloak.models.sessions.infinispan with parameters of type UserSessionModelModifierConstructorDescriptionAuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID, AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline) -
Uses of UserSessionModel in org.keycloak.models.sessions.infinispan.changes.sessions
Methods in org.keycloak.models.sessions.infinispan.changes.sessions with parameters of type UserSessionModelModifier and TypeMethodDescriptionCrossDCLastSessionRefreshChecker.shouldSaveClientSessionToRemoteCache(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<AuthenticatedClientSessionEntity> sessionWrapper, UserSessionModel userSession, boolean offline, int newTimestamp) -
Uses of UserSessionModel in org.keycloak.models.utils
Methods in org.keycloak.models.utils with parameters of type UserSessionModelModifier and TypeMethodDescriptionstatic UserSessionRepresentationModelToRepresentation.toRepresentation(UserSessionModel session) -
Uses of UserSessionModel in org.keycloak.protocol
Methods in org.keycloak.protocol with parameters of type UserSessionModelModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseLoginProtocol.authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx) jakarta.ws.rs.core.ResponseLoginProtocol.backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) jakarta.ws.rs.core.ResponseLoginProtocol.finishBrowserLogout(UserSessionModel userSession, AuthenticationSessionModel logoutSession) This method is called when browser logout is going to be finished.jakarta.ws.rs.core.ResponseLoginProtocol.frontchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) booleanLoginProtocol.requireReauthentication(UserSessionModel userSession, AuthenticationSessionModel authSession) -
Uses of UserSessionModel in org.keycloak.protocol.docker
Methods in org.keycloak.protocol.docker with parameters of type UserSessionModelModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseDockerAuthV2Protocol.authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx) jakarta.ws.rs.core.ResponseDockerAuthV2Protocol.backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) jakarta.ws.rs.core.ResponseDockerAuthV2Protocol.finishBrowserLogout(UserSessionModel userSession, AuthenticationSessionModel logoutSession) jakarta.ws.rs.core.ResponseDockerAuthV2Protocol.frontchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) booleanDockerAuthV2Protocol.requireReauthentication(UserSessionModel userSession, AuthenticationSessionModel clientSession) -
Uses of UserSessionModel in org.keycloak.protocol.docker.mapper
Methods in org.keycloak.protocol.docker.mapper with parameters of type UserSessionModelModifier and TypeMethodDescriptionAllowAllDockerProtocolMapper.transformDockerResponseToken(DockerResponseToken responseToken, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) DockerAuthV2AttributeMapper.transformDockerResponseToken(DockerResponseToken responseToken, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) -
Uses of UserSessionModel in org.keycloak.protocol.oidc
Fields in org.keycloak.protocol.oidc declared as UserSessionModelMethods in org.keycloak.protocol.oidc with parameters of type UserSessionModelModifier and TypeMethodDescriptionstatic ClientSessionContextTokenManager.attachAuthenticationSession(KeycloakSession session, UserSessionModel userSession, AuthenticationSessionModel authSession) jakarta.ws.rs.core.ResponseOIDCLoginProtocol.authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx) jakarta.ws.rs.core.ResponseOIDCLoginProtocol.backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) TokenManager.createClientAccessToken(KeycloakSession session, RealmModel realm, ClientModel client, UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx) protected jakarta.ws.rs.core.ResponseDefaultTokenExchangeProvider.exchangeClientToClient(UserModel targetUser, UserSessionModel targetUserSession, AccessToken token, boolean disallowOnHolderOfTokenMismatch) protected jakarta.ws.rs.core.ResponseDefaultTokenExchangeProvider.exchangeClientToOIDCClient(UserModel targetUser, UserSessionModel targetUserSession, String requestedTokenType, ClientModel targetClient, String audience, String scope) protected jakarta.ws.rs.core.ResponseDefaultTokenExchangeProvider.exchangeClientToSAML2Client(UserModel targetUser, UserSessionModel targetUserSession, String requestedTokenType, ClientModel targetClient) protected jakarta.ws.rs.core.ResponseDefaultTokenExchangeProvider.exchangeToIdentityProvider(UserModel targetUser, UserSessionModel targetUserSession, String requestedIssuer) jakarta.ws.rs.core.ResponseOIDCLoginProtocol.finishBrowserLogout(UserSessionModel userSession, AuthenticationSessionModel logoutSession) jakarta.ws.rs.core.ResponseOIDCLoginProtocol.frontchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) protected AccessTokenTokenManager.initToken(RealmModel realm, ClientModel client, UserModel user, UserSessionModel session, ClientSessionContext clientSessionCtx, jakarta.ws.rs.core.UriInfo uriInfo) protected booleanOIDCLoginProtocol.isAuthTimeExpired(UserSessionModel userSession, AuthenticationSessionModel authSession) protected booleanOIDCLoginProtocol.isReAuthRequiredForKcAction(UserSessionModel userSession, AuthenticationSessionModel authSession) booleanOIDCLoginProtocol.requireReauthentication(UserSessionModel userSession, AuthenticationSessionModel authSession) TokenManager.responseBuilder(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformAccessToken(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformAccessTokenResponse(KeycloakSession session, AccessTokenResponse accessTokenResponse, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformIDToken(KeycloakSession session, IDToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformIntrospectionAccessToken(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformUserInfoAccessToken(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) Constructors in org.keycloak.protocol.oidc with parameters of type UserSessionModelModifierConstructorDescriptionAccessTokenResponseBuilder(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenValidation(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, AccessToken newToken) -
Uses of UserSessionModel in org.keycloak.protocol.oidc.grants
Methods in org.keycloak.protocol.oidc.grants with parameters of type UserSessionModelModifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.ResponseOAuth2GrantTypeBase.createTokenResponse(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, String scopeParam, boolean code, Function<TokenManager.AccessTokenResponseBuilder, ClientPolicyContext> clientPolicyContextGenerator) protected voidOAuth2GrantTypeBase.updateUserSessionFromClientAuth(UserSessionModel userSession) -
Uses of UserSessionModel in org.keycloak.protocol.oidc.mappers
Methods in org.keycloak.protocol.oidc.mappers with parameters of type UserSessionModelModifier and TypeMethodDescriptionprotected voidAbstractOIDCProtocolMapper.setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapperimplementations to add claims to an token.protected voidAbstractOIDCProtocolMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) protected voidAbstractOIDCProtocolMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapperimplementations to add claims to an token.protected voidAcrProtocolMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidAddressMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) protected voidAmrProtocolMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidAudienceProtocolMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidClaimsParameterTokenMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidClaimsParameterWithValueIdTokenMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidFullNameMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) protected voidGroupMembershipMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) Adds the group membership information to theJsonWebToken.otherClaims.protected voidHardcodedClaim.setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidHardcodedClaim.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) protected voidHardcodedRole.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected voidRoleNameMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected voidScriptBasedOIDCProtocolMapper.setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidScriptBasedOIDCProtocolMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidSessionStateMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidUserAttributeMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) protected voidUserClientRoleMappingMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected voidUserPropertyMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) protected voidUserRealmRoleMappingMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected voidUserSessionNoteMapper.setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected voidUserSessionNoteMapper.setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) AbstractOIDCProtocolMapper.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AllowedWebOriginsProtocolMapper.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AudienceResolveProtocolMapper.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) HardcodedRole.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCAccessTokenMapper.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) RoleNameMapper.transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractOIDCProtocolMapper.transformAccessTokenResponse(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCAccessTokenResponseMapper.transformAccessTokenResponse(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractOIDCProtocolMapper.transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCIDTokenMapper.transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSession) AbstractOIDCProtocolMapper.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AllowedWebOriginsProtocolMapper.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AudienceResolveProtocolMapper.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) HardcodedRole.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) RoleNameMapper.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenIntrospectionTokenMapper.transformIntrospectionToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractOIDCProtocolMapper.transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) HardcodedRole.transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) RoleNameMapper.transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) UserInfoTokenMapper.transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
Uses of UserSessionModel in org.keycloak.protocol.saml
Methods in org.keycloak.protocol.saml with parameters of type UserSessionModelModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseSamlProtocol.authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx) jakarta.ws.rs.core.ResponseSamlProtocol.backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) protected StringSamlProtocol.buildArtifactAndStoreResponse(SAML2Object statusResponseType, UserSessionModel userSession) protected jakarta.ws.rs.core.ResponseSamlProtocol.buildLogoutArtifactResponse(UserSessionModel userSession, String redirectUri, StatusResponseType statusResponseType, JaxrsSAML2BindingBuilder bindingBuilder) This method, instead of sending the actual response with the token, sends the artifact message via post or redirect.protected jakarta.ws.rs.core.ResponseSamlProtocol.buildLogoutResponse(UserSessionModel userSession, String logoutBindingUri, SAML2LogoutResponseBuilder builder, JaxrsSAML2BindingBuilder binding) jakarta.ws.rs.core.ResponseSamlProtocol.finishBrowserLogout(UserSessionModel userSession, AuthenticationSessionModel logoutSession) jakarta.ws.rs.core.ResponseSamlProtocol.frontchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) protected StringSamlProtocol.getNameId(String nameIdFormat, CommonClientSessionModel clientSession, UserSessionModel userSession) protected StringSamlProtocol.getPersistentNameId(CommonClientSessionModel clientSession, UserSessionModel userSession) Attempts to retrieve the persistent type NameId as follows: saml.persistent.name.id.for.$clientId user attribute saml.persistent.name.id.for.* user attribute G-$randomUuidprotected StringSamlProtocol.getSAMLNameId(List<SamlProtocol.ProtocolMapperProcessor<SAMLNameIdMapper>> samlNameIdMappers, String nameIdFormat, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) static booleanSamlProtocol.isLogoutPostBindingForInitiator(UserSessionModel session) SamlProtocol.populateAttributeStatements(List<SamlProtocol.ProtocolMapperProcessor<SAMLAttributeStatementMapper>> attributeStatementMappers, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidSamlProtocol.populateRoles(SamlProtocol.ProtocolMapperProcessor<SAMLRoleListMapper> roleListMapper, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx, AttributeStatementType existingAttributeStatement) booleanSamlProtocol.requireReauthentication(UserSessionModel userSession, AuthenticationSessionModel authSession) SamlProtocol.transformLoginResponse(List<SamlProtocol.ProtocolMapperProcessor<SAMLLoginResponseMapper>> mappers, ResponseType response, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
Uses of UserSessionModel in org.keycloak.protocol.saml.mappers
Methods in org.keycloak.protocol.saml.mappers with parameters of type UserSessionModelModifier and TypeMethodDescriptionSAMLNameIdMapper.mapperNameId(String nameIdFormat, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) UserAttributeNameIdMapper.mapperNameId(String nameIdFormat, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidRoleListMapper.mapRoles(AttributeStatementType roleAttributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) voidSAMLRoleListMapper.mapRoles(AttributeStatementType roleAttributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) voidGroupMembershipMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidHardcodedAttributeMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidSAMLAttributeStatementMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidScriptBasedMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) This method attaches one or many attributes to the passed attribute statement.voidUserAttributeStatementMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidUserPropertyAttributeStatementMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) voidUserSessionNoteStatementMapper.transformAttributeStatement(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) SAMLAudienceProtocolMapper.transformLoginResponse(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) SAMLAudienceResolveProtocolMapper.transformLoginResponse(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) SAMLLoginResponseMapper.transformLoginResponse(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
Uses of UserSessionModel in org.keycloak.protocol.saml.preprocessor
Methods in org.keycloak.protocol.saml.preprocessor with parameters of type UserSessionModelModifier and TypeMethodDescriptiondefault LogoutRequestTypeSamlAuthenticationPreprocessor.beforeProcessingLogoutRequest(LogoutRequestType logoutRequest, UserSessionModel authSession, AuthenticatedClientSessionModel clientSession) Called before a logout request is processed.default LogoutRequestTypeSamlAuthenticationPreprocessor.beforeSendingLogoutRequest(LogoutRequestType logoutRequest, UserSessionModel authSession, AuthenticatedClientSessionModel clientSession) Called before a logout request is sent. -
Uses of UserSessionModel in org.keycloak.services.managers
Methods in org.keycloak.services.managers that return UserSessionModelModifier and TypeMethodDescriptionUserSessionManager.createUserSession(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState) UserSessionManager.createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) UserSessionManager.findOfflineUserSession(RealmModel realm, String userSessionId) Auth.getSession()AuthenticationManager.AuthResult.getSession()AuthenticationSessionManager.getUserSession(AuthenticationSessionModel authSession) UserSessionCrossDCManager.getUserSessionIfExistsRemotely(AuthenticationSessionManager asm, RealmModel realm) UserSessionCrossDCManager.getUserSessionWithClient(RealmModel realm, String id, boolean offline, String clientUUID) UserSessionCrossDCManager.getUserSessionWithClient(RealmModel realm, String id, String clientUUID) Methods in org.keycloak.services.managers that return types with arguments of type UserSessionModelModifier and TypeMethodDescriptionUserSessionManager.findOfflineSessions(RealmModel realm, UserModel user) Deprecated.UserSessionManager.findOfflineSessionsStream(RealmModel realm, UserModel user) Methods in org.keycloak.services.managers with parameters of type UserSessionModelModifier and TypeMethodDescriptionstatic BackchannelLogoutResponseAuthenticationManager.backchannelLogout(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers, boolean logoutBroker) static BackchannelLogoutResponseAuthenticationManager.backchannelLogout(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers, boolean logoutBroker, boolean offlineSession) static voidAuthenticationManager.backchannelLogout(KeycloakSession session, UserSessionModel userSession, boolean logoutBroker) static jakarta.ws.rs.core.ResponseAuthenticationManager.browserLogout(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers) static IdentityCookieTokenAuthenticationManager.createIdentityToken(KeycloakSession keycloakSession, RealmModel realm, UserModel user, UserSessionModel session, String issuer) static voidAuthenticationManager.createLoginCookie(KeycloakSession keycloakSession, RealmModel realm, UserModel user, UserSessionModel session, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection) static AuthenticationSessionModelAuthenticationManager.createOrJoinLogoutSession(KeycloakSession session, RealmModel realm, AuthenticationSessionManager asm, UserSessionModel userSession, boolean browserCookie) voidUserSessionManager.createOrUpdateOfflineSession(AuthenticatedClientSessionModel clientSession, UserSessionModel userSession) static booleanAuthenticationManager.expireUserSessionCookie(KeycloakSession session, UserSessionModel userSession, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, ClientConnection connection) static jakarta.ws.rs.core.ResponseAuthenticationManager.finishBrowserLogout(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers) static jakarta.ws.rs.core.ResponseAuthenticationManager.finishedRequiredActions(KeycloakSession session, AuthenticationSessionModel authSession, UserSessionModel userSession, ClientConnection clientConnection, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event) static voidAuthenticationManager.finishUnconfirmedUserSession(KeycloakSession session, RealmModel realm, UserSessionModel userSessionModel) static booleanAuthenticationManager.isOfflineSessionValid(RealmModel realm, UserSessionModel userSession) static booleanAuthenticationManager.isSessionValid(RealmModel realm, UserSessionModel userSession) static jakarta.ws.rs.core.ResponseAuthenticationManager.redirectAfterSuccessfulFlow(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionContext clientSessionCtx, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, EventBuilder event, AuthenticationSessionModel authSession) static jakarta.ws.rs.core.ResponseAuthenticationManager.redirectAfterSuccessfulFlow(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionContext clientSessionCtx, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, EventBuilder event, AuthenticationSessionModel authSession, LoginProtocol protocol) voidUserSessionManager.revokeOfflineUserSession(UserSessionModel userSession) Constructors in org.keycloak.services.managers with parameters of type UserSessionModelModifierConstructorDescriptionAuth(RealmModel realm, AccessToken token, UserModel user, ClientModel client, UserSessionModel session, boolean cookie) AuthResult(UserModel user, UserSessionModel session, AccessToken token, ClientModel client) -
Uses of UserSessionModel in org.keycloak.services.util
Methods in org.keycloak.services.util that return UserSessionModelModifier and TypeMethodDescriptionstatic UserSessionModelUserSessionUtil.findValidSession(KeycloakSession session, RealmModel realm, AccessToken token, EventBuilder event, ClientModel client) static UserSessionModelUserSessionUtil.findValidSession(KeycloakSession session, RealmModel realm, AccessToken token, EventBuilder event, ClientModel client, OAuth2Error error) -
Uses of UserSessionModel in org.keycloak.social.twitter
Methods in org.keycloak.social.twitter with parameters of type UserSessionModelModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseTwitterIdentityProvider.exchangeFromToken(jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder builder, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject, jakarta.ws.rs.core.MultivaluedMap<String, String> params) protected jakarta.ws.rs.core.ResponseTwitterIdentityProvider.exchangeSessionToken(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) protected jakarta.ws.rs.core.ResponseTwitterIdentityProvider.exchangeStoredToken(jakarta.ws.rs.core.UriInfo uriInfo, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject)
UserSessionProvider.createUserSession(String, RealmModel, UserModel, String, String, String, boolean, String, String, UserSessionModel.SessionPersistenceState)instead.