public interface ScopeValidator
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
additionalDataToReturnFromAuthorizeEndpoint(Map<String,Token> tokens,
OAuth2Request request)
Provided as an extension point to allow the OAuth2 provider to return additional data from an authorization
request.
|
void |
additionalDataToReturnFromTokenEndpoint(AccessToken accessToken,
OAuth2Request request)
Provided as an extension point to allow the OAuth2 provider to return additional data from an access token
request.
|
Map<String,Object> |
evaluateScope(AccessToken accessToken)
Gets the specified access token's information.
|
UserInfoClaims |
getUserInfo(ClientRegistration clientRegistration,
AccessToken token,
OAuth2Request request)
Gets the resource owners information based on an issued access token.
|
Set<String> |
validateAccessTokenScope(ClientRegistration clientRegistration,
Set<String> scope,
OAuth2Request request)
Provided as an extension point to allow the OAuth2 provider to customise the scope requested when an access token
is requested.
|
Set<String> |
validateAuthorizationScope(ClientRegistration clientRegistration,
Set<String> scope,
OAuth2Request request)
Provided as an extension point to allow the OAuth2 provider to customise the scope requested when authorization
is requested.
|
Set<String> |
validateRefreshTokenScope(ClientRegistration clientRegistration,
Set<String> requestedScope,
Set<String> tokenScope,
OAuth2Request request)
Provided as an extension point to allow the OAuth2 provider to customise the scope requested when a refresh token
is requested.
|
Set<String> validateAuthorizationScope(ClientRegistration clientRegistration, Set<String> scope, OAuth2Request request) throws InvalidScopeException, ServerException
clientRegistration
- The client registration.scope
- The requested scope.request
- The OAuth2 request.InvalidScopeException
- If the requested scope is invalid, unknown, or malformed.ServerException
- If any internal server error occurs.Set<String> validateAccessTokenScope(ClientRegistration clientRegistration, Set<String> scope, OAuth2Request request) throws InvalidScopeException, ServerException
clientRegistration
- The client registration.scope
- The requested scope.request
- The OAuth2 request.InvalidScopeException
- If the requested scope is invalid, unknown, or malformed.ServerException
- If any internal server error occurs.Set<String> validateRefreshTokenScope(ClientRegistration clientRegistration, Set<String> requestedScope, Set<String> tokenScope, OAuth2Request request) throws ServerException, InvalidScopeException
clientRegistration
- The client registration.requestedScope
- The requested scope.tokenScope
- The scope from the access token.request
- The OAuth2 request.InvalidScopeException
- If the requested scope is invalid, unknown, or malformed.ServerException
- If any internal server error occurs.UserInfoClaims getUserInfo(ClientRegistration clientRegistration, AccessToken token, OAuth2Request request) throws UnauthorizedClientException, NotFoundException
clientRegistration
- The client registration.token
- The access token.request
- The OAuth2 request.Map<String, Object>
of the resource owner's information.UnauthorizedClientException
- If the client's authorization fails.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.Map<String,Object> evaluateScope(AccessToken accessToken)
accessToken
- The access token.Map<String, Object>
of the access token's information.Map<String,String> additionalDataToReturnFromAuthorizeEndpoint(Map<String,Token> tokens, OAuth2Request request)
tokens
- The tokens that will be returned from the authorization call.request
- The OAuth2 request.Map<String, String>
of the additional data to return.void additionalDataToReturnFromTokenEndpoint(AccessToken accessToken, OAuth2Request request) throws ServerException, InvalidClientException, NotFoundException
accessToken
- The access token.request
- The OAuth2 request.ServerException
- If any internal server error occurs.InvalidClientException
- If either the request does not contain the client's id or the client fails to be
authenticated.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.