public abstract class AbstractSamlAuthMech extends Object implements io.undertow.security.api.AuthenticationMechanism
Modifier and Type | Field and Description |
---|---|
protected SamlDeploymentContext |
deploymentContext |
protected String |
errorPage |
static io.undertow.util.AttachmentKey<AuthChallenge> |
KEYCLOAK_CHALLENGE_ATTACHMENT_KEY |
protected UndertowUserSessionManagement |
sessionManagement |
Constructor and Description |
---|
AbstractSamlAuthMech(SamlDeploymentContext deploymentContext,
UndertowUserSessionManagement sessionManagement,
String errorPage) |
Modifier and Type | Method and Description |
---|---|
io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext)
Call this inside your authenticate method.
|
protected UndertowHttpFacade |
createFacade(io.undertow.server.HttpServerExchange exchange) |
protected abstract SamlSessionStore |
getTokenStore(io.undertow.server.HttpServerExchange exchange,
HttpFacade facade,
SamlDeployment deployment,
io.undertow.security.api.SecurityContext securityContext) |
protected void |
redirectLogout(SamlDeployment deployment,
io.undertow.server.HttpServerExchange exchange) |
protected void |
registerNotifications(io.undertow.security.api.SecurityContext securityContext) |
io.undertow.security.api.AuthenticationMechanism.ChallengeResult |
sendChallenge(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext) |
protected Integer |
servePage(io.undertow.server.HttpServerExchange exchange,
String location) |
public static final io.undertow.util.AttachmentKey<AuthChallenge> KEYCLOAK_CHALLENGE_ATTACHMENT_KEY
protected SamlDeploymentContext deploymentContext
protected UndertowUserSessionManagement sessionManagement
protected String errorPage
public AbstractSamlAuthMech(SamlDeploymentContext deploymentContext, UndertowUserSessionManagement sessionManagement, String errorPage)
public io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
sendChallenge
in interface io.undertow.security.api.AuthenticationMechanism
protected Integer servePage(io.undertow.server.HttpServerExchange exchange, String location)
protected void registerNotifications(io.undertow.security.api.SecurityContext securityContext)
public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
authenticate
in interface io.undertow.security.api.AuthenticationMechanism
protected void redirectLogout(SamlDeployment deployment, io.undertow.server.HttpServerExchange exchange)
protected UndertowHttpFacade createFacade(io.undertow.server.HttpServerExchange exchange)
protected abstract SamlSessionStore getTokenStore(io.undertow.server.HttpServerExchange exchange, HttpFacade facade, SamlDeployment deployment, io.undertow.security.api.SecurityContext securityContext)
Copyright © 2019 JBoss by Red Hat. All rights reserved.