Class HeaderBasedAuthenticationMechanism
java.lang.Object
io.stargate.sgv2.api.common.security.HeaderBasedAuthenticationMechanism
- All Implemented Interfaces:
io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
public class HeaderBasedAuthenticationMechanism
extends Object
implements io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
Implementation of the
HttpAuthenticationMechanism that authenticates on a header. If a
target header exists, request is considered as authenticated.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism.ChallengeSender -
Field Summary
Fields inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
DEFAULT_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionHeaderBasedAuthenticationMechanism(String headerName, javax.enterprise.inject.Instance<ChallengeSender> customChallengeSender) -
Method Summary
Modifier and TypeMethodDescriptionio.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<io.quarkus.vertx.http.runtime.security.ChallengeData>getChallenge(io.vertx.ext.web.RoutingContext context) io.smallrye.mutiny.Uni<io.quarkus.vertx.http.runtime.security.HttpCredentialTransport>getCredentialTransport(io.vertx.ext.web.RoutingContext context) io.smallrye.mutiny.Uni<Boolean>sendChallenge(io.vertx.ext.web.RoutingContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
getCredentialTransport, getPriority
-
Constructor Details
-
HeaderBasedAuthenticationMechanism
public HeaderBasedAuthenticationMechanism(String headerName, javax.enterprise.inject.Instance<ChallengeSender> customChallengeSender)
-
-
Method Details
-
authenticate
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager) - Specified by:
authenticatein interfaceio.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
-
getChallenge
public io.smallrye.mutiny.Uni<io.quarkus.vertx.http.runtime.security.ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context) - Specified by:
getChallengein interfaceio.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
-
sendChallenge
Writes a custom response.
- Specified by:
sendChallengein interfaceio.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
-
getCredentialTypes
public Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()- Specified by:
getCredentialTypesin interfaceio.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
-
getCredentialTransport
public io.smallrye.mutiny.Uni<io.quarkus.vertx.http.runtime.security.HttpCredentialTransport> getCredentialTransport(io.vertx.ext.web.RoutingContext context) - Specified by:
getCredentialTransportin interfaceio.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
-