Class ClientScopeAuthorizationRequestParser
java.lang.Object
org.keycloak.protocol.oidc.rar.parsers.ClientScopeAuthorizationRequestParser
- All Implemented Interfaces:
AuthorizationRequestParserProvider,Provider
public class ClientScopeAuthorizationRequestParser
extends Object
implements AuthorizationRequestParserProvider
- Author:
- Daniel Gozalo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()parseScopes(ClientModel client, String scopeParam) parseScopes(UserModel user, ClientModel client, String scopeParam) Creates aAuthorizationRequestContextwith a list ofAuthorizationDetailsthat will be parsed from the provided OAuth scopes that have been requested in a given Auth request, together with default client scopes.
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
ClientScopeAuthorizationRequestParser
-
-
Method Details
-
parseScopes
- Specified by:
parseScopesin interfaceAuthorizationRequestParserProvider
-
parseScopes
public AuthorizationRequestContext parseScopes(UserModel user, ClientModel client, String scopeParam) Creates aAuthorizationRequestContextwith a list ofAuthorizationDetailsthat 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:
parseScopesin interfaceAuthorizationRequestParserProvider- Parameters:
user- The user in the login (can be null, for example in the authorization endpoint)client- The client requesting the parsingscopeParam- the OAuth scope param for the current request- Returns:
- see description
-
close
public void close()
-