@Singleton
public class Authenticator
extends java.lang.Object
AuthenticationProvider instances returning the first
authenticated AuthenticationResponse.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<AuthenticationProvider> |
authenticationProviders |
| Constructor and Description |
|---|
Authenticator(java.util.Collection<AuthenticationProvider> authenticationProviders,
SecurityConfiguration securityConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
authenticate(io.micronaut.http.HttpRequest<?> request,
AuthenticationRequest<?,?> authenticationRequest)
Authenticates the user with the provided credentials.
|
protected final java.util.Collection<AuthenticationProvider> authenticationProviders
public Authenticator(java.util.Collection<AuthenticationProvider> authenticationProviders, SecurityConfiguration securityConfiguration)
authenticationProviders - A list of available authentication providerssecurityConfiguration - The security configurationpublic org.reactivestreams.Publisher<AuthenticationResponse> authenticate(io.micronaut.http.HttpRequest<?> request, AuthenticationRequest<?,?> authenticationRequest)
request - The HTTP requestauthenticationRequest - Represents a request to authenticate.AuthenticationResponse objects