public class GenericOAuth20Client extends OAuth20Client
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, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
GenericOAuth20Client() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
String |
getClientAuthenticationMethod() |
String |
getScope() |
boolean |
isWithState() |
void |
setAuthUrl(String authUrl) |
void |
setClientAuthenticationMethod(String clientAuthenticationMethod) |
void |
setCustomParams(Map<String,String> customParamsMap) |
void |
setProfileAttrs(Map<String,String> profileAttrsMap) |
void |
setProfileId(String profileId) |
void |
setProfileNodePath(String profilePath) |
void |
setProfileUrl(String profileUrl) |
void |
setProfileVerb(com.github.scribejava.core.model.Verb profileVerb) |
void |
setScope(String scope) |
void |
setTokenUrl(String tokenUrl) |
void |
setWithState(boolean withState) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectionActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitprotected void clientInit()
clientInit in class OAuth20Clientpublic 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)
public void setProfileId(String profileId)
public String getScope()
public void setScope(String scope)
public boolean isWithState()
public void setWithState(boolean withState)
public String getClientAuthenticationMethod()
public void setClientAuthenticationMethod(String clientAuthenticationMethod)
Copyright © 2019. All rights reserved.