## Uses of Interface
org.keycloak.models.ClientSessionContext

- Packages that use ClientSessionContext
  Package | Description
  --- | ---
  org.keycloak.authentication |
  org.keycloak.protocol |
  org.keycloak.protocol.docker |
  org.keycloak.protocol.oidc |
  org.keycloak.protocol.oidc.endpoints |
  org.keycloak.protocol.oidc.mappers |
  org.keycloak.protocol.saml |
  org.keycloak.protocol.saml.mappers |
  org.keycloak.services.managers |
  org.keycloak.services.util |
  org.keycloak.utils |

- - ### Uses of ClientSessionContext in org.keycloak.authentication

    Methods in org.keycloak.authentication that return ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `ClientSessionContext` | AuthenticationProcessor.`attachSession()`
    `static ClientSessionContext` | AuthenticationProcessor.`attachSession(AuthenticationSessionModel authSession, UserSessionModel userSession, KeycloakSession session, RealmModel realm, ClientConnection connection, EventBuilder event)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol

    Methods in org.keycloak.protocol with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | LoginProtocol.`authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `static Stream<Map.Entry<ProtocolMapperModel,ProtocolMapper>>` | ProtocolMapperUtils.`getSortedProtocolMappers(KeycloakSession session, ClientSessionContext ctx)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol.docker

    Methods in org.keycloak.protocol.docker with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | DockerAuthV2Protocol.`authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol.oidc

    Fields in org.keycloak.protocol.oidc declared as ClientSessionContext
    Modifier and Type | Field and Description
    --- | ---
    `ClientSessionContext` | TokenManager.TokenValidation.`clientSessionCtx`

    Methods in org.keycloak.protocol.oidc that return ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `static ClientSessionContext` | TokenManager.`attachAuthenticationSession(KeycloakSession session, UserSessionModel userSession, AuthenticationSessionModel authSession)`

    Methods in org.keycloak.protocol.oidc with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | OIDCLoginProtocol.`authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | TokenManager.`createClientAccessToken(KeycloakSession session, RealmModel realm, ClientModel client, UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `protected AccessToken` | TokenManager.`initToken(RealmModel realm, ClientModel client, UserModel user, UserSessionModel session, ClientSessionContext clientSessionCtx, javax.ws.rs.core.UriInfo uriInfo)`
    `TokenManager.AccessTokenResponseBuilder` | TokenManager.`responseBuilder(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | TokenManager.`transformAccessToken(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessTokenResponse` | TokenManager.`transformAccessTokenResponse(KeycloakSession session, AccessTokenResponse accessTokenResponse, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `void` | TokenManager.`transformIDToken(KeycloakSession session, IDToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | TokenManager.`transformUserInfoAccessToken(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`

    Constructors in org.keycloak.protocol.oidc with parameters of type ClientSessionContext
    Constructor and Description
    `AccessTokenResponseBuilder(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `TokenValidation(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, AccessToken newToken)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol.oidc.endpoints

    Methods in org.keycloak.protocol.oidc.endpoints with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | TokenEndpoint.`createTokenResponse(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, String scopeParam, boolean code)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol.oidc.mappers

    Methods in org.keycloak.protocol.oidc.mappers with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | UserSessionNoteMapper.`setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)`
    `protected void` | ScriptBasedOIDCProtocolMapper.`setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)`
    `protected void` | HardcodedClaim.`setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)`
    `protected void` | AbstractOIDCProtocolMapper.`setClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)` Intended to be overridden in `ProtocolMapper` implementations to add claims to an token.
    `protected void` | UserRealmRoleMappingMapper.`setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx)`
    `protected void` | UserClientRoleMappingMapper.`setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx)`
    `protected void` | ScriptBasedOIDCProtocolMapper.`setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)`
    `protected void` | ClaimsParameterTokenMapper.`setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)`
    `protected void` | AudienceProtocolMapper.`setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)`
    `protected void` | AbstractOIDCProtocolMapper.`setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)` Intended to be overridden in `ProtocolMapper` implementations to add claims to an token.
    `AccessToken` | RoleNameMapper.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | OIDCAccessTokenMapper.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | HardcodedRole.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | AudienceResolveProtocolMapper.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | AllowedWebOriginsProtocolMapper.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | AbstractPairwiseSubMapper.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | AbstractOIDCProtocolMapper.`transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessTokenResponse` | OIDCAccessTokenResponseMapper.`transformAccessTokenResponse(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessTokenResponse` | AbstractOIDCProtocolMapper.`transformAccessTokenResponse(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `IDToken` | OIDCIDTokenMapper.`transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSession)`
    `IDToken` | AbstractPairwiseSubMapper.`transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `IDToken` | AbstractOIDCProtocolMapper.`transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | UserInfoTokenMapper.`transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | AbstractPairwiseSubMapper.`transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `AccessToken` | AbstractOIDCProtocolMapper.`transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol.saml

    Methods in org.keycloak.protocol.saml with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | SamlProtocol.`authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `void` | SamlProtocol.`populateRoles(SamlProtocol.ProtocolMapperProcessor<SAMLRoleListMapper> roleListMapper, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx, AttributeStatementType existingAttributeStatement)`
    `ResponseType` | SamlProtocol.`transformLoginResponse(List<SamlProtocol.ProtocolMapperProcessor<SAMLLoginResponseMapper>> mappers, ResponseType response, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`

  - ### Uses of ClientSessionContext in org.keycloak.protocol.saml.mappers

    Methods in org.keycloak.protocol.saml.mappers with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `void` | SAMLRoleListMapper.`mapRoles(AttributeStatementType roleAttributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `void` | RoleListMapper.`mapRoles(AttributeStatementType roleAttributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `ResponseType` | SAMLLoginResponseMapper.`transformLoginResponse(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `ResponseType` | SAMLAudienceResolveProtocolMapper.`transformLoginResponse(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`
    `ResponseType` | SAMLAudienceProtocolMapper.`transformLoginResponse(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)`

  - ### Uses of ClientSessionContext in org.keycloak.services.managers

    Methods in org.keycloak.services.managers with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | UserSessionManager.`isOfflineTokenAllowed(ClientSessionContext clientSessionCtx)`
    `static javax.ws.rs.core.Response` | AuthenticationManager.`redirectAfterSuccessfulFlow(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionContext clientSessionCtx, org.jboss.resteasy.spi.HttpRequest request, javax.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, EventBuilder event, AuthenticationSessionModel authSession)`
    `static javax.ws.rs.core.Response` | AuthenticationManager.`redirectAfterSuccessfulFlow(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionContext clientSessionCtx, org.jboss.resteasy.spi.HttpRequest request, javax.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, EventBuilder event, AuthenticationSessionModel authSession, LoginProtocol protocol)`

  - ### Uses of ClientSessionContext in org.keycloak.services.util

    Classes in org.keycloak.services.util that implement ClientSessionContext
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultClientSessionContext` Not thread safe.

  - ### Uses of ClientSessionContext in org.keycloak.utils

    Methods in org.keycloak.utils with parameters of type ClientSessionContext
    Modifier and Type | Method and Description
    --- | ---
    `static Map<String,AccessToken.Access>` | RoleResolveUtil.`getAllResolvedClientRoles(KeycloakSession session, ClientSessionContext clientSessionCtx)` Object (but can be empty map) containing all the user's client roles of all clients.
    `static AccessToken.Access` | RoleResolveUtil.`getResolvedClientRoles(KeycloakSession session, ClientSessionContext clientSessionCtx, String clientId, boolean createIfMissing)` Object (possibly null) containing all the user's client roles of client specified by clientId.
    `static AccessToken.Access` | RoleResolveUtil.`getResolvedRealmRoles(KeycloakSession session, ClientSessionContext clientSessionCtx, boolean createIfMissing)` Object (possibly null) containing all the user's realm roles.

Copyright © 2021 JBoss by Red Hat. All rights reserved.