public class LinkedIn2Client extends OAuth20Client<LinkedIn2Profile>
This class is the OAuth client to authenticate users in LinkedIn (using OAuth 2.0 protocol).
It returns a LinkedIn2Profile
.
The scope (by default : r_fullprofile
) can be specified using the setScope(String)
method, as well as the returned
fields through the setFields(String)
method.
More information at https://developer.linkedin.com/documents/profile-api
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCOPE |
protected String |
fields |
protected String |
scope |
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, urlResolver
logger
Constructor and Description |
---|
LinkedIn2Client() |
LinkedIn2Client(String key,
String secret) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit(WebContext context)
Initialize the client.
|
String |
getFields() |
String |
getScope() |
void |
setFields(String fields) |
void |
setScope(String scope) |
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
public static final String DEFAULT_SCOPE
protected String scope
protected String fields
protected void clientInit(WebContext context)
IndirectClient
clientInit
in class OAuth20Client<LinkedIn2Profile>
context
- the web contextpublic String getScope()
public void setScope(String scope)
public String getFields()
public void setFields(String fields)
Copyright © 2017. All rights reserved.