public class OrcidProfileDefinition extends OAuth20ProfileDefinition<OrcidProfile>
Modifier and Type | Field and Description |
---|---|
static String |
CLAIMED |
static String |
CREATION_METHOD |
static String |
FAMILY_NAME |
static String |
FIRST_NAME |
static String |
ORCID |
static String |
URI |
DISPLAY_NAME, EMAIL, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URL
logger, newProfile
Constructor and Description |
---|
OrcidProfileDefinition() |
Modifier and Type | Method and Description |
---|---|
OrcidProfile |
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, convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory
public static final String ORCID
public static final String FIRST_NAME
public static final String FAMILY_NAME
public static final String URI
public static final String CREATION_METHOD
public static final String CLAIMED
public String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken, OAuth20Configuration configuration)
OAuthProfileDefinition
getProfileUrl
in class OAuthProfileDefinition<OrcidProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>
accessToken
- only used when constructing dynamic urls from data in the tokenconfiguration
- the current configurationpublic OrcidProfile extractUserProfile(String body) throws HttpAction
OAuthProfileDefinition
extractUserProfile
in class OAuthProfileDefinition<OrcidProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>
body
- the response bodyHttpAction
- whether an extra HTTP action is requiredCopyright © 2018. All rights reserved.