Class OauthPasswordAuthenticationProvider<T>
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.password.OauthPasswordAuthenticationProvider<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 OauthPasswordAuthenticationProvider<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 OAuth 2.0 provider using the
password grant flow.- Since:
- 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionOauthPasswordAuthenticationProvider(TokenEndpointClient tokenEndpointClient, OauthClientConfiguration clientConfiguration, OauthAuthenticationMapper authenticationMapper) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.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.protected SecureEndpointgetTokenEndpoint(OauthClientConfiguration clientConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.Builds the secure endpoint from the client configuration.
-
Constructor Details
-
OauthPasswordAuthenticationProvider
public OauthPasswordAuthenticationProvider(TokenEndpointClient tokenEndpointClient, OauthClientConfiguration clientConfiguration, OauthAuthenticationMapper authenticationMapper) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
tokenEndpointClient- The token endpoint clientclientConfiguration- The client configurationauthenticationMapper- The user details mapper
-
-
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:
authenticatein interfaceio.micronaut.security.authentication.AuthenticationProvider<T>
-
getTokenEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Builds the secure endpoint from the client configuration.- Parameters:
clientConfiguration- The client configuration- Returns:
- The token endpoint
-
ReactiveOauthPasswordAuthenticationProviderinstead.