public class OAuthRequestAuthenticator extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthChallenge |
challenge |
protected KeycloakDeployment |
deployment |
protected HttpFacade |
facade |
protected IDToken |
idToken |
protected String |
idTokenString |
protected String |
refreshToken |
protected RequestAuthenticator |
reqAuthenticator |
protected int |
sslRedirectPort |
protected String |
strippedOauthParametersRequestUri |
protected AccessToken |
token |
protected AdapterSessionStore |
tokenStore |
protected String |
tokenString |
Constructor and Description |
---|
OAuthRequestAuthenticator(RequestAuthenticator requestAuthenticator,
HttpFacade facade,
KeycloakDeployment deployment,
int sslRedirectPort,
AdapterSessionStore tokenStore) |
protected KeycloakDeployment deployment
protected RequestAuthenticator reqAuthenticator
protected int sslRedirectPort
protected AdapterSessionStore tokenStore
protected String tokenString
protected String idTokenString
protected IDToken idToken
protected AccessToken token
protected HttpFacade facade
protected AuthChallenge challenge
protected String refreshToken
protected String strippedOauthParametersRequestUri
public OAuthRequestAuthenticator(RequestAuthenticator requestAuthenticator, HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort, AdapterSessionStore tokenStore)
public AuthChallenge getChallenge()
public String getTokenString()
public AccessToken getToken()
public String getRefreshToken()
public String getIdTokenString()
public void setIdTokenString(String idTokenString)
public IDToken getIdToken()
public void setIdToken(IDToken idToken)
public String getStrippedOauthParametersRequestUri()
public void setStrippedOauthParametersRequestUri(String strippedOauthParametersRequestUri)
protected String getRequestUrl()
protected boolean isRequestSecure()
protected HttpFacade.Cookie getCookie(String cookieName)
protected String getError()
protected String getCode()
protected int sslRedirectPort()
protected String getStateCode()
protected AuthChallenge loginRedirect()
protected AuthChallenge checkStateCookie()
public AuthOutcome authenticate()
protected AuthChallenge challenge(int code, OIDCAuthenticationError.Reason reason, String description)
protected AuthChallenge resolveCode(String code)
protected String stripOauthParametersFromRedirect()
Copyright © 2019 JBoss by Red Hat. All rights reserved.