Interface AuthenticationProvider

    • Method Detail

      • authenticate

        CompletionStage<AuthenticationResponse> authenticate​(ProviderRequest providerRequest)
        Authenticate a request. This may be just resolving headers (tokens) or full authentication (basic auth). Do not throw exception for normal processing (e.g. invalid credentials; you may throw an exception in case of misconfiguration). This method will be invoked for inbound requests ONLY.

        This method must provide either a Principal or a whole Subject either for a user or for service (or both).

        providerRequest - context of this security enforcement/validation
        response that either authenticates the request, fails authentication or abstains from authentication
        See Also: