public class OpenIdPasswordAuthenticationProvider
extends java.lang.Object
implements io.micronaut.security.authentication.AuthenticationProvider
AuthenticationProvider that delegates to an OpenID provider using the
password grant flow.| Constructor and Description |
|---|
OpenIdPasswordAuthenticationProvider(OauthClientConfiguration clientConfiguration,
OpenIdProviderMetadata openIdProviderMetadata,
TokenEndpointClient tokenEndpointClient,
OpenIdAuthenticationMapper openIdAuthenticationMapper,
OpenIdTokenResponseValidator tokenResponseValidator) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse> |
authenticate(io.micronaut.http.HttpRequest<?> httpRequest,
io.micronaut.security.authentication.AuthenticationRequest<?,?> authenticationRequest) |
protected SecureEndpoint |
getTokenEndpoint(OpenIdProviderMetadata openIdProviderMetadata)
Builds the secure endpoint from the provider metadata.
|
public OpenIdPasswordAuthenticationProvider(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, TokenEndpointClient tokenEndpointClient, OpenIdAuthenticationMapper openIdAuthenticationMapper, OpenIdTokenResponseValidator tokenResponseValidator)
clientConfiguration - The client configurationopenIdProviderMetadata - The provider metadatatokenEndpointClient - The token endpoint clientopenIdAuthenticationMapper - The user details mappertokenResponseValidator - The token response validatorpublic org.reactivestreams.Publisher<io.micronaut.security.authentication.AuthenticationResponse> authenticate(io.micronaut.http.HttpRequest<?> httpRequest,
io.micronaut.security.authentication.AuthenticationRequest<?,?> authenticationRequest)
authenticate in interface io.micronaut.security.authentication.AuthenticationProviderprotected SecureEndpoint getTokenEndpoint(OpenIdProviderMetadata openIdProviderMetadata)
openIdProviderMetadata - The provider metadata