Interface AuthenticationProvider
-
public interface AuthenticationProviderDefines an authentication provider.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<AuthenticationResponse>authenticate(io.micronaut.http.HttpRequest<?> httpRequest, AuthenticationRequest<?,?> authenticationRequest)Authenticates a user with the given request.
-
-
-
Method Detail
-
authenticate
org.reactivestreams.Publisher<AuthenticationResponse> authenticate(@Nullable io.micronaut.http.HttpRequest<?> httpRequest, AuthenticationRequest<?,?> authenticationRequest)
Authenticates a user with the given request. If a successful authentication is returned, the object must be an instance ofAuthentication. Publishers MUST emit cold observables! This method will be called for all authenticators for each authentication request and it is assumed no work will be done until the publisher is subscribed to.- Parameters:
httpRequest- The http requestauthenticationRequest- The credentials to authenticate- Returns:
- A publisher that emits 0 or 1 responses
-
-