public abstract class UndertowRequestAuthenticator extends RequestAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected io.undertow.server.HttpServerExchange |
exchange |
protected io.undertow.security.api.SecurityContext |
securityContext |
protected UndertowUserSessionManagement |
userSessionManagement |
challenge, deployment, facade, log, sslRedirectPort| Constructor and Description |
|---|
UndertowRequestAuthenticator(HttpFacade facade,
KeycloakDeployment deployment,
int sslRedirectPort,
io.undertow.security.api.SecurityContext securityContext,
io.undertow.server.HttpServerExchange exchange,
UndertowUserSessionManagement userSessionManagement) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
completeBearerAuthentication(KeycloakPrincipal principal,
RefreshableKeycloakSecurityContext session) |
protected void |
completeOAuthAuthentication(KeycloakPrincipal principal,
RefreshableKeycloakSecurityContext session) |
protected abstract KeycloakUndertowAccount |
createAccount(KeycloakPrincipal principal,
RefreshableKeycloakSecurityContext session)
Subclasses need to be able to create their own version of the KeycloakUndertowAccount
|
protected OAuthRequestAuthenticator |
createOAuthAuthenticator() |
protected boolean |
isCached() |
protected void |
login(KeycloakAccount account) |
protected void |
propagateKeycloakContext(KeycloakUndertowAccount account) |
authenticate, completeAuthentication, completeAuthentication, createBearerTokenAuthenticator, getChallenge, verifySSLprotected io.undertow.security.api.SecurityContext securityContext
protected io.undertow.server.HttpServerExchange exchange
protected UndertowUserSessionManagement userSessionManagement
public UndertowRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange, UndertowUserSessionManagement userSessionManagement)
protected void propagateKeycloakContext(KeycloakUndertowAccount account)
protected OAuthRequestAuthenticator createOAuthAuthenticator()
createOAuthAuthenticator in class RequestAuthenticatorprotected void completeOAuthAuthentication(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)
completeOAuthAuthentication in class RequestAuthenticatorprotected void login(KeycloakAccount account)
protected void completeBearerAuthentication(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)
completeBearerAuthentication in class RequestAuthenticatorprotected boolean isCached()
isCached in class RequestAuthenticatorprotected abstract KeycloakUndertowAccount createAccount(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)
Copyright © 2014. All Rights Reserved.