Class ReactiveAuthenticationProviderAdapter<T,I,S>
java.lang.Object
io.micronaut.security.authentication.provider.ReactiveAuthenticationProviderAdapter<T,I,S>
- Type Parameters:
T
- Request Context TypeI
- Authentication Request Identity TypeS
- Authentication Request Secret Type
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,ReactiveAuthenticationProvider<T,
I, S>
@Internal
@Deprecated(forRemoval=true,
since="4.5.1")
public final class ReactiveAuthenticationProviderAdapter<T,I,S>
extends Object
implements ReactiveAuthenticationProvider<T,I,S>
Deprecated, for removal: This API element is subject to removal in a future version.
Adapts from
AuthenticationProvider
to ReactiveAuthenticationProvider
.- Since:
- 4.5.1
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionReactiveAuthenticationProviderAdapter
(AuthenticationProvider<T> authenticationProvider) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<AuthenticationResponse>
authenticate
(T requestContext, AuthenticationRequest<I, S> authenticationRequest) Deprecated, for removal: This API element is subject to removal in a future version.Authenticates a user with the given request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
Methods inherited from interface io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider
authenticate
-
Constructor Details
-
ReactiveAuthenticationProviderAdapter
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
authenticate
public org.reactivestreams.Publisher<AuthenticationResponse> authenticate(T requestContext, AuthenticationRequest<I, S> authenticationRequest) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ReactiveAuthenticationProvider
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.- Specified by:
authenticate
in interfaceReactiveAuthenticationProvider<T,
I, S> - Parameters:
requestContext
- rquest context (it may be an HTTP request).authenticationRequest
- The credentials to authenticate- Returns:
- A publisher that emits 0 or 1 responses
-