Class NessieHttpAuthenticator


  • @Alternative
    @Priority(1)
    @ApplicationScoped
    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 Detail

      • NessieHttpAuthenticator

        @Inject
        public NessieHttpAuthenticator​(QuarkusNessieAuthenticationConfig config,
                                       javax.enterprise.inject.Instance<io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism> instance,
                                       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