Class TokenExchangeGrantType

java.lang.Object
org.keycloak.protocol.oidc.grants.OAuth2GrantTypeBase
org.keycloak.protocol.oidc.grants.TokenExchangeGrantType
All Implemented Interfaces:
OAuth2GrantType, Provider

public class TokenExchangeGrantType extends OAuth2GrantTypeBase
OAuth 2.0 Authorization Code Grant https://datatracker.ietf.org/doc/html/rfc8693#section-2.1
Author:
Dmitry Telegin (et al.)
  • Constructor Details

    • TokenExchangeGrantType

      public TokenExchangeGrantType()
  • Method Details

    • process

      public jakarta.ws.rs.core.Response process(OAuth2GrantType.Context context)
      Description copied from interface: OAuth2GrantType
      Processes grant request.
      Parameters:
      context - grant request context
      Returns:
      token response
    • getEventType

      public EventType getEventType()
      Description copied from interface: OAuth2GrantType
      Returns the event type associated with this OAuth 2.0 grant type.
      Returns:
      event type
    • getSupportedMultivaluedRequestParameters

      public Set<String> getSupportedMultivaluedRequestParameters()
      Returns:
      request parameters, which can be duplicated for the particular grant type. The grant request is typically rejected if request contains multiple values of some parameter, which is not listed here
    • getTokenParameterNames

      public Set<String> getTokenParameterNames()
      Description copied from interface: OAuth2GrantType
      Name of the "token" parameters, which this grant type supports. As 'token' parameter is considered a parameter containing possibly long token (for example big JWT or SAML assertion) with unbounded data (For example possibly big amount of roles inside JWT). Example of such parameter is for example 'subject_token' parameter case of token exchange grant.
      Returns:
      set of strings with the "token" parameters supported by this grant type