@Singleton public class ResourceOwnerSessionValidator extends Object
Constructor and Description |
---|
ResourceOwnerSessionValidator(DNWrapper dnWrapper,
SSOTokenManager ssoTokenManager,
OAuth2ProviderSettingsFactory providerSettingsFactory,
ClientDAO clientDAO,
ClientCredentialsReader clientCredentialsReader) |
Modifier and Type | Method and Description |
---|---|
SSOToken |
getResourceOwnerSession(OAuth2Request request)
Gets the resource owner's session from the OAuth2 request.
|
ResourceOwner |
validate(OAuth2Request request)
Checks if the request contains valid resource owner session.
|
@Inject public ResourceOwnerSessionValidator(DNWrapper dnWrapper, SSOTokenManager ssoTokenManager, OAuth2ProviderSettingsFactory providerSettingsFactory, ClientDAO clientDAO, ClientCredentialsReader clientCredentialsReader)
public ResourceOwner validate(OAuth2Request request) throws ResourceOwnerAuthenticationRequired, AccessDeniedException, BadRequestException, InteractionRequiredException, LoginRequiredException, ServerException, NotFoundException
request
- The OAuth2 request.ResourceOwnerAuthenticationRequired
- If the resource owner needs to authenticate before the authorize
request can be allowed.AccessDeniedException
- If resource owner authentication fails.BadRequestException
- If the request is malformed.InteractionRequiredException
- If the OpenID Connect prompt parameter enforces that the resource owner
is not asked to authenticate, but the resource owner does not have a current authenticated session.LoginRequiredException
- If authenticating the resource owner fails.ServerException
- If the server is misconfigured.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.public SSOToken getResourceOwnerSession(OAuth2Request request)
request
- The OAuth2 request.SSOToken
.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.