Class ReactiveOpenIdPasswordAuthenticationProvider<T,I,S>

java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.password.ReactiveOpenIdPasswordAuthenticationProvider<T,I,S>
Type Parameters:
T - Request Context Type
I - Authentication Request Identity Type
S - Authentication Request Secret Type
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider<T,I,S>

public class ReactiveOpenIdPasswordAuthenticationProvider<T,I,S> extends Object implements io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider<T,I,S>
An ReactiveAuthenticationProvider that delegates to an OpenID provider using the password grant flow.
Since:
4.8.0
  • Constructor Details

    • ReactiveOpenIdPasswordAuthenticationProvider

      public ReactiveOpenIdPasswordAuthenticationProvider(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, TokenEndpointClient tokenEndpointClient, OpenIdAuthenticationMapper openIdAuthenticationMapper, ReactiveOpenIdTokenResponseValidator<com.nimbusds.jwt.JWT> tokenResponseValidator)
      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<I,S> authenticationRequest)
      Specified by:
      authenticate in interface io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider<T,I,S>