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, urlResolver
logger
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, 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
protected void clientInit(WebContext context)
IndirectClient
clientInit
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 © 2017. All rights reserved.