Class NessieHttpAuthenticator


  • @Alternative
    @Priority(1)
    @Singleton
    public class NessieHttpAuthenticator
    extends io.quarkus.vertx.http.runtime.security.HttpAuthenticator
    A custom HttpAuthenticator. This authenticator that performs the following main duties:
    • Prevents the Quarkus OIDC authentication mechanism from attempting authentication when it is not configured. Note that attempts to use the OIDC authentication mechanism when the authentication server is not properly configured will result in 500 errors as opposed to 401 (not authorized).
    • Completely disallows unauthenticated requests when authentication is enabled.
    • Constructor Summary

      Constructors 
      Constructor Description
      NessieHttpAuthenticator​(QuarkusNessieAuthenticationConfig config, io.quarkus.security.identity.IdentityProviderManager identityProviderManager, javax.enterprise.inject.Instance<io.quarkus.vertx.http.runtime.security.PathMatchingHttpSecurityPolicy> pathMatchingPolicy, javax.enterprise.inject.Instance<io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism> httpAuthenticationMechanism, javax.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<?>> providers)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> attemptAuthentication​(io.vertx.ext.web.RoutingContext context)  
      • Methods inherited from class io.quarkus.vertx.http.runtime.security.HttpAuthenticator

        getChallenge, sendChallenge
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NessieHttpAuthenticator

        @Inject
        public NessieHttpAuthenticator​(QuarkusNessieAuthenticationConfig config,
                                       io.quarkus.security.identity.IdentityProviderManager identityProviderManager,
                                       javax.enterprise.inject.Instance<io.quarkus.vertx.http.runtime.security.PathMatchingHttpSecurityPolicy> pathMatchingPolicy,
                                       javax.enterprise.inject.Instance<io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism> httpAuthenticationMechanism,
                                       javax.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<?>> providers)
    • Method Detail

      • attemptAuthentication

        public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> attemptAuthentication​(io.vertx.ext.web.RoutingContext context)
        Overrides:
        attemptAuthentication in class io.quarkus.vertx.http.runtime.security.HttpAuthenticator