Class OpenIdPasswordAuthenticationProvider<T>

java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.password.OpenIdPasswordAuthenticationProvider<T>
Type Parameters:
T - Request Context Type
All Implemented Interfaces:
io.micronaut.security.authentication.AuthenticationProvider<T>

@Deprecated(since="4.8.0", forRemoval=true) public class OpenIdPasswordAuthenticationProvider<T> extends Object implements io.micronaut.security.authentication.AuthenticationProvider<T>
Deprecated, for removal: This API element is subject to removal in a future version.
An AuthenticationProvider that delegates to an OpenID provider using the password grant flow.
Since:
1.2.0
  • Constructor Details

    • OpenIdPasswordAuthenticationProvider

      public OpenIdPasswordAuthenticationProvider(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, TokenEndpointClient tokenEndpointClient, OpenIdAuthenticationMapper openIdAuthenticationMapper, OpenIdTokenResponseValidator tokenResponseValidator)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      clientConfiguration - The client configuration
      openIdProviderMetadata - The provider metadata
      tokenEndpointClient - The token endpoint client
      openIdAuthenticationMapper - The user details mapper
      tokenResponseValidator - The token response validator
  • Method Details

    • authenticate

      public org.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse> authenticate(T requestContext, io.micronaut.security.authentication.AuthenticationRequest<?,?> authenticationRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      authenticate in interface io.micronaut.security.authentication.AuthenticationProvider<T>
    • getTokenEndpoint

      protected SecureEndpoint getTokenEndpoint(OpenIdProviderMetadata openIdProviderMetadata)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Builds the secure endpoint from the provider metadata.
      Parameters:
      openIdProviderMetadata - The provider metadata
      Returns:
      The token endpoint