Interface HttpAuthenticationMechanism

All Known Implementing Classes:
BasicAuthenticationMechanism, FormAuthenticationMechanism, HttpAuthenticator.NoAuthenticationMechanism, MtlsAuthenticationMechanism

public interface HttpAuthenticationMechanism
An interface that performs HTTP based authentication
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity>
    authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
     
    io.smallrye.mutiny.Uni<ChallengeData>
    getChallenge(io.vertx.ext.web.RoutingContext context)
     
    Deprecated.
    default io.smallrye.mutiny.Uni<HttpCredentialTransport>
    getCredentialTransport(io.vertx.ext.web.RoutingContext context)
    The credential transport, used for finding the best candidate for authenticating and challenging when more than one mechanism is installed.
    default Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>>
    If this mechanism delegates authentication to the IdentityProviderManager using the IdentityProviderManager.authenticate(AuthenticationRequest) call, then the mechanism must provide supported AuthenticationRequest request types.
    default int
    Returns a priority which determines in which order HttpAuthenticationMechanisms handle the authentication and challenge requests when it is not possible to select the best candidate authentication mechanism based on the request credentials or path specific configuration.
    default io.smallrye.mutiny.Uni<Boolean>
    sendChallenge(io.vertx.ext.web.RoutingContext context)
     
  • Field Details

  • Method Details

    • authenticate

      io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
    • getChallenge

      io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context)
    • getCredentialTypes

      default Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
      If this mechanism delegates authentication to the IdentityProviderManager using the IdentityProviderManager.authenticate(AuthenticationRequest) call, then the mechanism must provide supported AuthenticationRequest request types. It allows Quarkus to validate that one or more IdentityProvider providers with matching supported IdentityProvider.getRequestType() request types exist and fail otherwise.
      Returns:
      required credential types
    • sendChallenge

      default io.smallrye.mutiny.Uni<Boolean> sendChallenge(io.vertx.ext.web.RoutingContext context)
    • getCredentialTransport

      @Deprecated default HttpCredentialTransport getCredentialTransport()
      Deprecated.
      The credential transport, used for finding the best candidate for authenticating and challenging when more than one mechanism is installed. and finding the best candidate for issuing a challenge when more than one mechanism is installed. May be null if this mechanism cannot interfere with other mechanisms
    • getCredentialTransport

      default io.smallrye.mutiny.Uni<HttpCredentialTransport> getCredentialTransport(io.vertx.ext.web.RoutingContext context)
      The credential transport, used for finding the best candidate for authenticating and challenging when more than one mechanism is installed. May be null if this mechanism cannot interfere with other mechanisms
    • getPriority

      default int getPriority()
      Returns a priority which determines in which order HttpAuthenticationMechanisms handle the authentication and challenge requests when it is not possible to select the best candidate authentication mechanism based on the request credentials or path specific configuration. Multiple mechanisms are sorted in descending order, so the highest priority gets the first chance to send a challenge. The default priority is equal to 1000.
      Returns:
      priority