@Deprecated public class ServletOAuthClient extends KeycloakDeploymentDelegateOAuthClient
Modifier and Type | Class and Description |
---|---|
static class |
ServletOAuthClient.ServletFacade
Deprecated.
|
authUrl, clientId, credentials, isSecure, publicClient, relativeUrlsUsed, scope, stateCookieName, stateCookiePath, tokenUrl
Constructor and Description |
---|
ServletOAuthClient()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static IDToken |
extractIdToken(String idToken)
Deprecated.
|
static String |
generateSecret()
Deprecated.
|
static String |
generateSecret(int bytes)
Deprecated.
|
AccessTokenResponse |
getBearerToken(javax.servlet.http.HttpServletRequest request)
Deprecated.
Obtain the code parameter from the url after being redirected back from the auth-server.
|
protected String |
getCode(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected String |
getCookieValue(String name,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
void |
redirect(String redirectUri,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Start the process of obtaining an access token by redirecting the browser
to the authentication server
|
void |
redirectRelative(String relativePath,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Start the process of obtaining an access token by redirecting the browser
to the authentication server
|
AccessTokenResponse |
refreshToken(javax.servlet.http.HttpServletRequest request,
String refreshToken)
Deprecated.
|
void |
stop()
Deprecated.
closes client
|
getAuthUrl, getClientId, getCredentials, getDeployment, getRelativeUrlsUsed, getTokenUrl, isPublicClient, setAuthUrl, setClientId, setCredentials, setDeployment, setPublicClient, setRelativeUrlsUsed, setTokenUrl
getScope, getStateCode, getStateCookieName, getStateCookiePath, isSecure, setScope, setSecure, setStateCookieName, setStateCookiePath, stripOauthParametersFromRedirect
public static String generateSecret()
public static String generateSecret(int bytes)
public void stop()
public void redirectRelative(String relativePath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
relativePath
- path relative to context root you want auth server to redirect back torequest
- response
- IOException
public void redirect(String redirectUri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
redirectUri
- full URI you want auth server to redirect back torequest
- response
- IOException
protected String getCookieValue(String name, javax.servlet.http.HttpServletRequest request)
protected String getCode(javax.servlet.http.HttpServletRequest request)
public AccessTokenResponse getBearerToken(javax.servlet.http.HttpServletRequest request) throws IOException, ServerRequest.HttpFailure
request
- IOException
ServerRequest.HttpFailure
public AccessTokenResponse refreshToken(javax.servlet.http.HttpServletRequest request, String refreshToken) throws IOException, ServerRequest.HttpFailure
IOException
ServerRequest.HttpFailure
Copyright © 2019 JBoss by Red Hat. All rights reserved.