public abstract class AbstractUndertowKeycloakAuthMech extends Object implements io.undertow.security.api.AuthenticationMechanism
Modifier and Type | Field and Description |
---|---|
protected AdapterDeploymentContext |
deploymentContext |
static io.undertow.util.AttachmentKey<AuthChallenge> |
KEYCLOAK_CHALLENGE_ATTACHMENT_KEY |
protected UndertowUserSessionManagement |
sessionManagement |
Constructor and Description |
---|
AbstractUndertowKeycloakAuthMech(AdapterDeploymentContext deploymentContext,
UndertowUserSessionManagement sessionManagement) |
Modifier and Type | Method and Description |
---|---|
protected AdapterTokenStore |
getTokenStore(io.undertow.server.HttpServerExchange exchange,
HttpFacade facade,
KeycloakDeployment deployment,
io.undertow.security.api.SecurityContext securityContext) |
protected io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome |
keycloakAuthenticate(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext,
RequestAuthenticator authenticator)
Call this inside your authenticate method.
|
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) |
public static final io.undertow.util.AttachmentKey<AuthChallenge> KEYCLOAK_CHALLENGE_ATTACHMENT_KEY
protected AdapterDeploymentContext deploymentContext
protected UndertowUserSessionManagement sessionManagement
public AbstractUndertowKeycloakAuthMech(AdapterDeploymentContext deploymentContext, UndertowUserSessionManagement sessionManagement)
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 void registerNotifications(io.undertow.security.api.SecurityContext securityContext)
protected io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome keycloakAuthenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext, RequestAuthenticator authenticator)
protected AdapterTokenStore getTokenStore(io.undertow.server.HttpServerExchange exchange, HttpFacade facade, KeycloakDeployment deployment, io.undertow.security.api.SecurityContext securityContext)
Copyright © 2014. All Rights Reserved.