Interface AuthenticationProvider<T>

Type Parameters:
T - Request Context Type
All Known Implementing Classes:
LdapAuthenticationProvider, OauthPasswordAuthenticationProvider, OpenIdPasswordAuthenticationProvider

@Deprecated(forRemoval=true, since="4.5.0") public interface AuthenticationProvider<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Use AuthenticationProvider for an imperative API or ReactiveAuthenticationProvider for a reactive API instead.
Defines an authentication provider.
Since:
1.0
Author:
Sergio del Amo, Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.reactivestreams.Publisher<AuthenticationResponse>
    authenticate(T httpRequest, AuthenticationRequest<?,?> authenticationRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Authenticates a user with the given request.
  • Method Details

    • authenticate

      @NonNull @NonNull org.reactivestreams.Publisher<AuthenticationResponse> authenticate(@Nullable T httpRequest, AuthenticationRequest<?,?> authenticationRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
      Parameters:
      httpRequest - The http request
      authenticationRequest - The credentials to authenticate
      Returns:
      A publisher that emits 0 or 1 responses