public class CasOAuthWrapperClient extends OAuth20Client<CasOAuthWrapperProfile>
This class is the OAuth client to authenticate users on CAS servers using OAuth wrapper.
The url of the OAuth endpoint of the CAS server must be set by using the setCasOAuthUrl(String)
method.
It returns a CasOAuthWrapperProfile
.
More information at https://wiki.jasig.org/display/CASUM/OAuth+server+support
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, urlResolver
logger
Constructor and Description |
---|
CasOAuthWrapperClient() |
CasOAuthWrapperClient(String key,
String secret,
String casOAuthUrl) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit(WebContext context)
Initialize the client.
|
String |
getCasLogoutUrl() |
String |
getCasOAuthUrl() |
boolean |
isImplicitFlow() |
boolean |
isSpringSecurityCompliant() |
void |
setCasLogoutUrl(String casLogoutUrl) |
void |
setCasOAuthUrl(String casOAuthUrl) |
void |
setImplicitFlow(boolean implicitFlow) |
void |
setSpringSecurityCompliant(boolean springSecurityCompliant) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toString
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolver
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setName, setProfileCreator
init, reinit
protected void clientInit(WebContext context)
IndirectClient
clientInit
in class OAuth20Client<CasOAuthWrapperProfile>
context
- the web contextpublic String getCasOAuthUrl()
public void setCasOAuthUrl(String casOAuthUrl)
public boolean isSpringSecurityCompliant()
public void setSpringSecurityCompliant(boolean springSecurityCompliant)
public boolean isImplicitFlow()
public void setImplicitFlow(boolean implicitFlow)
public String getCasLogoutUrl()
public void setCasLogoutUrl(String casLogoutUrl)
Copyright © 2017. All rights reserved.