Class ClientScopeAuthorizationRequestParser

java.lang.Object
org.keycloak.protocol.oidc.rar.parsers.ClientScopeAuthorizationRequestParser
All Implemented Interfaces:
org.keycloak.protocol.oidc.rar.AuthorizationRequestParserProvider, org.keycloak.provider.Provider

public class ClientScopeAuthorizationRequestParser extends Object implements org.keycloak.protocol.oidc.rar.AuthorizationRequestParserProvider
Author:
Daniel Gozalo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.jboss.logging.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClientScopeAuthorizationRequestParser(org.keycloak.models.KeycloakSession session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.keycloak.rar.AuthorizationRequestContext
    parseScopes(org.keycloak.models.ClientModel client, String scopeParam)
     
    org.keycloak.rar.AuthorizationRequestContext
    parseScopes(org.keycloak.models.UserModel user, org.keycloak.models.ClientModel client, String scopeParam)
    Creates a AuthorizationRequestContext with a list of AuthorizationDetails that will be parsed from the provided OAuth scopes that have been requested in a given Auth request, together with default client scopes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected static final org.jboss.logging.Logger logger
  • Constructor Details

    • ClientScopeAuthorizationRequestParser

      public ClientScopeAuthorizationRequestParser(org.keycloak.models.KeycloakSession session)
  • Method Details

    • parseScopes

      public org.keycloak.rar.AuthorizationRequestContext parseScopes(org.keycloak.models.ClientModel client, String scopeParam)
      Specified by:
      parseScopes in interface org.keycloak.protocol.oidc.rar.AuthorizationRequestParserProvider
    • parseScopes

      public org.keycloak.rar.AuthorizationRequestContext parseScopes(org.keycloak.models.UserModel user, org.keycloak.models.ClientModel client, String scopeParam)
      Creates a AuthorizationRequestContext with a list of AuthorizationDetails that will be parsed from the provided OAuth scopes that have been requested in a given Auth request, together with default client scopes.

      Parameterized scopes will also be parsed with the extracted parameter, so it can be used later

      Specified by:
      parseScopes in interface org.keycloak.protocol.oidc.rar.AuthorizationRequestParserProvider
      Parameters:
      user - The user in the login (can be null, for example in the authorization endpoint)
      client - The client requesting the parsing
      scopeParam - the OAuth scope param for the current request
      Returns:
      see description
    • close

      public void close()
      Specified by:
      close in interface org.keycloak.provider.Provider