Class ReactiveAuthenticationProviderAdapter<T,I,S>

java.lang.Object
io.micronaut.security.authentication.provider.ReactiveAuthenticationProviderAdapter<T,I,S>
Type Parameters:
T - Request Context Type
I - Authentication Request Identity Type
S - 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.
Since:
4.5.1
Author:
Sergio del Amo
  • Constructor Details

    • ReactiveAuthenticationProviderAdapter

      public ReactiveAuthenticationProviderAdapter(AuthenticationProvider<T> authenticationProvider)
      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 of Authentication. 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 interface ReactiveAuthenticationProvider<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