Class Authenticator<T>
java.lang.Object
io.micronaut.security.authentication.Authenticator<T>
- Type Parameters:
T
- Request
An Authenticator operates on several
AuthenticationProvider
instances returning the first
authenticated AuthenticationResponse
.- Since:
- 1.0
- Author:
- Sergio del Amo, Graeme Rocher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticator
(Collection<AuthenticationProvider<T>> authenticationProviders, SecurityConfiguration securityConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<AuthenticationResponse>
authenticate
(T request, AuthenticationRequest<?, ?> authenticationRequest) Authenticates the user with the provided credentials.
-
Field Details
-
authenticationProviders
-
-
Constructor Details
-
Authenticator
public Authenticator(Collection<AuthenticationProvider<T>> authenticationProviders, SecurityConfiguration securityConfiguration) - Parameters:
authenticationProviders
- A list of available authentication providerssecurityConfiguration
- The security configuration
-
-
Method Details
-
authenticate
public org.reactivestreams.Publisher<AuthenticationResponse> authenticate(T request, AuthenticationRequest<?, ?> authenticationRequest) Authenticates the user with the provided credentials.- Parameters:
request
- The HTTP requestauthenticationRequest
- Represents a request to authenticate.- Returns:
- A publisher that emits
AuthenticationResponse
objects
-