Package org.keycloak.adapters.wildfly
Class WildflyRequestAuthenticator
- java.lang.Object
-
- org.keycloak.adapters.RequestAuthenticator
-
- org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
-
- org.keycloak.adapters.undertow.ServletRequestAuthenticator
-
- org.keycloak.adapters.wildfly.WildflyRequestAuthenticator
-
public class WildflyRequestAuthenticator extends ServletRequestAuthenticator
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlog-
Fields inherited from class org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
exchange, securityContext
-
Fields inherited from class org.keycloak.adapters.RequestAuthenticator
challenge, deployment, facade, sslRedirectPort, tokenStore
-
-
Constructor Summary
Constructors Constructor Description WildflyRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange, AdapterTokenStore tokenStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GroupcreateGroup(String name, Set<Principal> principals)protected PrincipalgetPrincipal(Subject subject)Get the Principal given the authenticated Subject.protected Group[]getRoleSets(Collection<String> roleSet)protected voidpropagateKeycloakContext(KeycloakUndertowAccount account)-
Methods inherited from class org.keycloak.adapters.undertow.ServletRequestAuthenticator
changeHttpSessionId, createAccount, createOAuthAuthenticator, getHttpSessionId, getSession
-
Methods inherited from class org.keycloak.adapters.undertow.AbstractUndertowRequestAuthenticator
completeBearerAuthentication, completeOAuthAuthentication
-
Methods inherited from class org.keycloak.adapters.RequestAuthenticator
authenticate, completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL
-
-
-
-
Constructor Detail
-
WildflyRequestAuthenticator
public WildflyRequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, io.undertow.security.api.SecurityContext securityContext, io.undertow.server.HttpServerExchange exchange, AdapterTokenStore tokenStore)
-
-
Method Detail
-
propagateKeycloakContext
protected void propagateKeycloakContext(KeycloakUndertowAccount account)
- Overrides:
propagateKeycloakContextin classServletRequestAuthenticator
-
getPrincipal
protected Principal getPrincipal(Subject subject)
Get the Principal given the authenticated Subject. Currently the first subject that is not of typeGroupis considered or the single subject inside the CallerPrincipal group.- Parameters:
subject-- Returns:
- the authenticated subject
-
getRoleSets
protected Group[] getRoleSets(Collection<String> roleSet)
-
-