public class CasOAuthWrapperProfileDefinition extends OAuth20ProfileDefinition<CasOAuthWrapperProfile>
CasOAuthWrapperProfile
profile definition.Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATION_DATE |
static String |
AUTHENTICATION_METHOD |
static String |
IS_FROM_NEW_LOGIN |
static String |
LONG_TERM_AUTHENTICATION_REQUEST_TOKEN_USED |
static String |
SUCCESSFUL_AUTHENTICATION_HANDLERS |
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URL
logger, newProfile
Constructor and Description |
---|
CasOAuthWrapperProfileDefinition() |
Modifier and Type | Method and Description |
---|---|
CasOAuthWrapperProfile |
extractUserProfile(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
String |
getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken,
OAuth20Configuration configuration)
Retrieve the url of the profile of the authenticated user for the provider.
|
getProfileVerb
convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory
public static final String IS_FROM_NEW_LOGIN
public static final String AUTHENTICATION_DATE
public static final String AUTHENTICATION_METHOD
public static final String SUCCESSFUL_AUTHENTICATION_HANDLERS
public static final String LONG_TERM_AUTHENTICATION_REQUEST_TOKEN_USED
public String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken, OAuth20Configuration configuration)
OAuthProfileDefinition
getProfileUrl
in class OAuthProfileDefinition<CasOAuthWrapperProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>
accessToken
- only used when constructing dynamic urls from data in the tokenconfiguration
- the current configurationpublic CasOAuthWrapperProfile extractUserProfile(String body) throws HttpAction
OAuthProfileDefinition
extractUserProfile
in class OAuthProfileDefinition<CasOAuthWrapperProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>
body
- the response bodyHttpAction
- whether an extra HTTP action is requiredCopyright © 2017. All rights reserved.