public class FormAuthenticationMechanism extends Object implements HttpAuthenticationMechanism
HttpAuthenticationMechanism.ChallengeSender
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_POST_LOCATION |
Constructor and Description |
---|
FormAuthenticationMechanism(String loginPage,
String errorPage,
String landingPage,
boolean redirectAfterLogin,
PersistentLoginManager loginManager) |
Modifier and Type | Method and Description |
---|---|
io.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) |
HttpCredentialTransport |
getCredentialTransport()
The credential transport, used to make sure multiple incompatible mechanisms are not installed
May be null if this mechanism cannot interfere with other mechanisms
|
Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> |
getCredentialTypes()
Returns the required credential types.
|
(package private) static io.smallrye.mutiny.Uni<ChallengeData> |
getRedirect(io.vertx.ext.web.RoutingContext exchange,
String location) |
protected void |
handleRedirectBack(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 void |
sendRedirect(io.vertx.ext.web.RoutingContext exchange,
String location) |
protected void |
servePage(io.vertx.ext.web.RoutingContext exchange,
String location) |
protected void |
storeInitialLocation(io.vertx.ext.web.RoutingContext exchange) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendChallenge
public static final String DEFAULT_POST_LOCATION
public FormAuthenticationMechanism(String loginPage, String errorPage, String landingPage, boolean redirectAfterLogin, PersistentLoginManager loginManager)
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> runFormAuth(io.vertx.ext.web.RoutingContext exchange, io.quarkus.security.identity.IdentityProviderManager securityContext)
protected void handleRedirectBack(io.vertx.ext.web.RoutingContext exchange)
protected void storeInitialLocation(io.vertx.ext.web.RoutingContext exchange)
protected void servePage(io.vertx.ext.web.RoutingContext exchange, String location)
static void sendRedirect(io.vertx.ext.web.RoutingContext exchange, String location)
static io.smallrye.mutiny.Uni<ChallengeData> getRedirect(io.vertx.ext.web.RoutingContext exchange, String location)
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager)
authenticate
in interface HttpAuthenticationMechanism
public io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context)
getChallenge
in interface HttpAuthenticationMechanism
public Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()
HttpAuthenticationMechanism
getCredentialTypes
in interface HttpAuthenticationMechanism
public HttpCredentialTransport getCredentialTransport()
HttpAuthenticationMechanism
getCredentialTransport
in interface HttpAuthenticationMechanism
Copyright © 2020 JBoss by Red Hat. All rights reserved.