public class GenericOAuth20Client extends OAuth20Client<OAuth20Profile>
This class is a generic OAuth2 client to authenticate users in a standard OAuth2 server.
All configuration parameters can be specified setting the corresponding attribute.
It returns a OAuth20Profile.
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, urlResolverlogger| Constructor and Description |
|---|
GenericOAuth20Client() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit(WebContext context)
Initialize the client.
|
void |
setAuthUrl(String authUrl) |
void |
setCustomParams(Map<String,String> customParamsMap) |
void |
setProfileAttrs(Map<String,String> profileAttrsMap) |
void |
setProfileNodePath(String profilePath) |
void |
setProfileUrl(String profileUrl) |
void |
setProfileVerb(com.github.scribejava.core.model.Verb profileVerb) |
void |
setTokenUrl(String tokenUrl) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setName, setProfileCreatorinit, reinitprotected void clientInit(WebContext context)
IndirectClientclientInit in class OAuth20Client<OAuth20Profile>context - the web contextpublic void setAuthUrl(String authUrl)
public void setTokenUrl(String tokenUrl)
public void setProfileUrl(String profileUrl)
public void setProfileNodePath(String profilePath)
public void setProfileVerb(com.github.scribejava.core.model.Verb profileVerb)
Copyright © 2018. All rights reserved.