public class Google2ProfileDefinition extends OAuth20ProfileDefinition<Google2Profile,OAuth20Configuration>
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL_VERIFIED |
static String |
GIVEN_NAME |
static String |
NAME |
static String |
PICTURE |
static String |
PROFILE |
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URLlogger, newProfile| Constructor and Description |
|---|
Google2ProfileDefinition() |
| Modifier and Type | Method and Description |
|---|---|
Google2Profile |
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, raiseProfileExtractionError, raiseProfileExtractionJsonError, raiseProfileExtractionJsonErrorconfigurePrimaryAttributesconvertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileIdpublic static final String EMAIL_VERIFIED
public static final String GIVEN_NAME
public static final String NAME
public static final String PICTURE
public static final String PROFILE
public String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken, OAuth20Configuration configuration)
OAuthProfileDefinitiongetProfileUrl in class OAuthProfileDefinition<Google2Profile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>accessToken - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic Google2Profile extractUserProfile(String body)
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<Google2Profile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyCopyright © 2019. All rights reserved.