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
.
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
logger
Constructor and Description |
---|
GenericOAuth20Client() |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit()
Initialize the client.
|
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, toString
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolver
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator
init
protected void clientInit()
IndirectClient
clientInit
in class OAuth20Client<OAuth20Profile>
public 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.