Class OpenIdPasswordAuthenticationProvider

  • All Implemented Interfaces:
    io.micronaut.security.authentication.AuthenticationProvider

    public class OpenIdPasswordAuthenticationProvider
    extends java.lang.Object
    implements io.micronaut.security.authentication.AuthenticationProvider
    An AuthenticationProvider that delegates to an OpenID provider using the password grant flow.
    Since:
    1.2.0
    • Constructor Detail

    • Method Detail

      • authenticate

        public org.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse> authenticate​(io.micronaut.http.HttpRequest<?> httpRequest,
                                                                                                                       io.micronaut.security.authentication.AuthenticationRequest<?,​?> authenticationRequest)
        Specified by:
        authenticate in interface io.micronaut.security.authentication.AuthenticationProvider
      • getTokenEndpoint

        protected SecureEndpoint getTokenEndpoint​(OpenIdProviderMetadata openIdProviderMetadata)
        Builds the secure endpoint from the provider metadata.
        Parameters:
        openIdProviderMetadata - The provider metadata
        Returns:
        The token endpoint