@Singleton public class AuthorizationTokenIssuer extends Object
Constructor and Description |
---|
AuthorizationTokenIssuer(OAuth2UrisFactory urisFactory) |
Modifier and Type | Method and Description |
---|---|
AuthorizationToken |
issueTokens(OAuth2Request request,
ClientRegistration clientRegistration,
ResourceOwner resourceOwner,
Set<String> authorizationScope,
OAuth2ProviderSettings providerSettings)
Issues tokens for the OAuth2 authorize request.
|
@Inject public AuthorizationTokenIssuer(OAuth2UrisFactory urisFactory)
public AuthorizationToken issueTokens(OAuth2Request request, ClientRegistration clientRegistration, ResourceOwner resourceOwner, Set<String> authorizationScope, OAuth2ProviderSettings providerSettings) throws InvalidClientException, UnsupportedResponseTypeException, ServerException, InvalidScopeException, NotFoundException
request
- The OAuth2 request.clientRegistration
- The client's registration.resourceOwner
- The resource owner.authorizationScope
- The authorization scope.providerSettings
- An instance of the OAuth2ProviderSettings.InvalidClientException
- If either the request does not contain the client's id or the client fails to be
authenticated.UnsupportedResponseTypeException
- If the requested response type is not supported by either the client
or the OAuth2 provider.ServerException
- If any internal server error occurs.InvalidScopeException
- If the requested scope is invalid, unknown, or malformed.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.