Class ReactiveOauthPasswordAuthenticationProvider<T,I,S>
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.password.ReactiveOauthPasswordAuthenticationProvider<T,I,S>
- Type Parameters:
T- Request Context TypeI- Authentication Request Identity TypeS- Authentication Request Secret Type
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider<T,I, S>
public class ReactiveOauthPasswordAuthenticationProvider<T,I,S>
extends Object
implements io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider<T,I,S>
An
ReactiveAuthenticationProvider that delegates to an OAuth 2.0 provider using the
password grant flow.- Since:
- 4.8.0
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionReactiveOauthPasswordAuthenticationProvider(TokenEndpointClient tokenEndpointClient, OauthClientConfiguration clientConfiguration, OauthAuthenticationMapper authenticationMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse>authenticate(T requestContext, io.micronaut.security.authentication.AuthenticationRequest<I, S> authenticationRequest) protected SecureEndpointgetTokenEndpoint(OauthClientConfiguration clientConfiguration) Builds the secure endpoint from the client configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider
authenticate
-
Constructor Details
-
ReactiveOauthPasswordAuthenticationProvider
public ReactiveOauthPasswordAuthenticationProvider(TokenEndpointClient tokenEndpointClient, OauthClientConfiguration clientConfiguration, OauthAuthenticationMapper authenticationMapper) - Parameters:
tokenEndpointClient- The token endpoint clientclientConfiguration- The client configurationauthenticationMapper- The user details mapper
-
-
Method Details
-
authenticate
-
getTokenEndpoint
Builds the secure endpoint from the client configuration.- Parameters:
clientConfiguration- The client configuration- Returns:
- The token endpoint
-