Class HttpAuthenticator

java.lang.Object
io.quarkus.vertx.http.runtime.security.HttpAuthenticator

@Singleton public class HttpAuthenticator extends Object
Class that is responsible for running the HTTP based authentication
  • Constructor Details

    • HttpAuthenticator

      public HttpAuthenticator(io.quarkus.security.identity.IdentityProviderManager identityProviderManager, jakarta.enterprise.event.Event<AuthenticationFailureEvent> authFailureEvent, jakarta.enterprise.event.Event<AuthenticationSuccessEvent> authSuccessEvent, jakarta.enterprise.inject.spi.BeanManager beanManager, jakarta.enterprise.inject.Instance<HttpAuthenticationMechanism> httpAuthenticationMechanism, jakarta.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<?>> providers, boolean securityEventsEnabled)
  • Method Details

    • getIdentityProviderManager

      public io.quarkus.security.identity.IdentityProviderManager getIdentityProviderManager()
    • attemptAuthentication

      public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> attemptAuthentication(io.vertx.ext.web.RoutingContext routingContext)
      Attempts authentication with the contents of the request. If this is possible the Uni will resolve to a valid SecurityIdentity when it is subscribed to. Note that Uni is lazy, so this may not happen until the Uni is subscribed to.

      If invalid credentials are present then the completion stage will resolve to a AuthenticationFailedException

      If no credentials are present it will resolve to null.

    • sendChallenge

      public io.smallrye.mutiny.Uni<Boolean> sendChallenge(io.vertx.ext.web.RoutingContext routingContext)
      Returns:
    • getChallenge

      public io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext routingContext)