public class Google2ProfileDefinition extends OAuth20ProfileDefinition<Google2Profile,OAuth20Configuration>
Modifier and Type | Field and Description |
---|---|
static String |
BIRTHDAY
Deprecated.
|
static String |
DISPLAY_NAME
Deprecated.
|
static String |
EMAIL
Deprecated.
|
static String |
EMAIL_VERIFIED |
static String |
EMAILS
Deprecated.
|
static String |
FAMILY_NAME
Deprecated.
|
static String |
GIVEN_NAME |
static String |
LANGUAGE
Deprecated.
|
static String |
NAME |
static String |
PICTURE |
static String |
PROFILE |
static String |
URL
Deprecated.
|
FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URL
logger, 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, raiseProfileExtractionJsonError
convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileId
@Deprecated public static final String DISPLAY_NAME
@Deprecated public static final String URL
@Deprecated public static final String FAMILY_NAME
@Deprecated public static final String EMAILS
@Deprecated public static final String LANGUAGE
@Deprecated public static final String BIRTHDAY
@Deprecated public static final String EMAIL
public 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)
OAuthProfileDefinition
getProfileUrl
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)
OAuthProfileDefinition
extractUserProfile
in class OAuthProfileDefinition<Google2Profile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>
body
- the response bodyCopyright © 2019. All rights reserved.