Class ResourceOwnerAuthenticator


  • @Singleton
    public class ResourceOwnerAuthenticator
    extends Object
    Authenticates a resource owner from the credentials provided on the request.
    Since:
    12.0.0
    • Constructor Detail

      • ResourceOwnerAuthenticator

        @Inject
        public ResourceOwnerAuthenticator​(RealmNormaliser realmNormaliser)
        Constructs a new OpenAMResourceOwnerAuthenticator.
        Parameters:
        realmNormaliser - An instance of the RealmNormaliser.
    • Method Detail

      • authenticate

        public ResourceOwner authenticate​(OAuth2Request request)
                                   throws NotFoundException
        Authenticates a resource owner by extracting the resource owner's credentials from the request and authenticating against the OAuth2 provider's internal user store.
        Parameters:
        request - The OAuth2 request.
        Returns:
        The authenticated ResourceOwner, or null if authentication failed.
        Throws:
        NotFoundException - if the requested realm doesn't exist