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 -
Field Summary
Fields -
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<ChallengeData>getChallenge(io.vertx.ext.web.RoutingContext context) default HttpCredentialTransportDeprecated.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.If this mechanism delegates authentication to theIdentityProviderManagerusing theIdentityProviderManager.authenticate(AuthenticationRequest)call, then the mechanism must provide supportedAuthenticationRequestrequest types.default intReturns 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
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY- See Also:
-
-
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
-
getCredentialTypes
default Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()If this mechanism delegates authentication to theIdentityProviderManagerusing theIdentityProviderManager.authenticate(AuthenticationRequest)call, then the mechanism must provide supportedAuthenticationRequestrequest types. It allows Quarkus to validate that one or moreIdentityProviderproviders with matching supportedIdentityProvider.getRequestType()request types exist and fail otherwise.- Returns:
- required credential types
-
sendChallenge
-
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
-