public abstract class RequestAuthenticator extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthChallenge |
challenge |
protected KeycloakDeployment |
deployment |
protected HttpFacade |
facade |
protected static org.jboss.logging.Logger |
log |
protected int |
sslRedirectPort |
protected AdapterTokenStore |
tokenStore |
Constructor and Description |
---|
RequestAuthenticator(HttpFacade facade,
KeycloakDeployment deployment) |
RequestAuthenticator(HttpFacade facade,
KeycloakDeployment deployment,
AdapterTokenStore tokenStore,
int sslRedirectPort) |
protected static org.jboss.logging.Logger log
protected HttpFacade facade
protected AuthChallenge challenge
protected KeycloakDeployment deployment
protected AdapterTokenStore tokenStore
protected int sslRedirectPort
public RequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, AdapterTokenStore tokenStore, int sslRedirectPort)
public RequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment)
public AuthChallenge getChallenge()
public AuthOutcome authenticate()
protected boolean verifySSL()
protected boolean isAutodetectedBearerOnly(HttpFacade.Request request)
protected abstract OAuthRequestAuthenticator createOAuthAuthenticator()
protected BearerTokenRequestAuthenticator createBearerTokenAuthenticator()
protected BasicAuthRequestAuthenticator createBasicAuthAuthenticator()
protected QueryParamterTokenRequestAuthenticator createQueryParamterTokenRequestAuthenticator()
protected void completeAuthentication(OAuthRequestAuthenticator oauth)
protected abstract void completeOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
protected abstract void completeBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method)
protected abstract String changeHttpSessionId(boolean create)
create
- protected void completeAuthentication(BearerTokenRequestAuthenticator bearer, String method)
Copyright © 2019 JBoss by Red Hat. All rights reserved.