Class FormAuthenticationMechanism
java.lang.Object
io.quarkus.vertx.http.runtime.security.FormAuthenticationMechanism
- All Implemented Interfaces:
HttpAuthenticationMechanism
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
HttpAuthenticationMechanism.ChallengeSender -
Field Summary
FieldsFields inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
DEFAULT_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionFormAuthenticationMechanism(HttpConfiguration httpConfiguration, HttpBuildTimeConfig buildTimeConfig) FormAuthenticationMechanism(String loginPage, String postLocation, String usernameParameter, String passwordParameter, String errorPage, String landingPage, boolean redirectAfterLogin, String locationCookie, String cookieSameSite, String cookiePath, PersistentLoginManager loginManager) -
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) 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.Returns the required credential types.(package private) static io.smallrye.mutiny.Uni<ChallengeData>getRedirect(io.vertx.ext.web.RoutingContext exchange, String location) protected voidhandleRedirectBack(io.vertx.ext.web.RoutingContext exchange) io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity>runFormAuth(io.vertx.ext.web.RoutingContext exchange, io.quarkus.security.identity.IdentityProviderManager securityContext) (package private) static voidsendRedirect(io.vertx.ext.web.RoutingContext exchange, String location) protected voidprotected voidstoreInitialLocation(io.vertx.ext.web.RoutingContext exchange) protected voidverifyRedirectBackLocation(String requestURIString, String redirectUriString) 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, sendChallenge
-
Field Details
-
encryptionKey
-
-
Constructor Details
-
FormAuthenticationMechanism
@Inject FormAuthenticationMechanism(HttpConfiguration httpConfiguration, HttpBuildTimeConfig buildTimeConfig) -
FormAuthenticationMechanism
-
-
Method Details
-
runFormAuth
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> runFormAuth(io.vertx.ext.web.RoutingContext exchange, io.quarkus.security.identity.IdentityProviderManager securityContext) -
handleRedirectBack
protected void handleRedirectBack(io.vertx.ext.web.RoutingContext exchange) -
verifyRedirectBackLocation
-
storeInitialLocation
protected void storeInitialLocation(io.vertx.ext.web.RoutingContext exchange) -
servePage
-
sendRedirect
-
getRedirect
static io.smallrye.mutiny.Uni<ChallengeData> getRedirect(io.vertx.ext.web.RoutingContext exchange, String location) -
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 interfaceHttpAuthenticationMechanism
-
getChallenge
- Specified by:
getChallengein interfaceHttpAuthenticationMechanism
-
getCredentialTypes
public Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()Description copied from interface:HttpAuthenticationMechanismReturns the required credential types. If there are no identity managers installed that support the listed types then this mechanism will not be enabled.- Specified by:
getCredentialTypesin interfaceHttpAuthenticationMechanism
-
getCredentialTransport
public io.smallrye.mutiny.Uni<HttpCredentialTransport> getCredentialTransport(io.vertx.ext.web.RoutingContext context) Description copied from interface:HttpAuthenticationMechanismThe 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- Specified by:
getCredentialTransportin interfaceHttpAuthenticationMechanism
-