public class WechatClient extends OAuth20Client<WechatProfile>
This class is the OAuth client to authenticate users in Tencent Wechat.
It returns a WechatProfile
.
More info at: WeChat login development guide
Modifier and Type | Class and Description |
---|---|
static class |
WechatClient.WechatScope |
Modifier and Type | Field and Description |
---|---|
protected List<WechatClient.WechatScope> |
scopes |
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
logger
Constructor and Description |
---|
WechatClient() |
WechatClient(String key,
String secret) |
Modifier and Type | Method and Description |
---|---|
void |
addScope(WechatClient.WechatScope scopes) |
protected void |
clientInit()
Initialize the client.
|
protected String |
getOAuthScope() |
List<WechatClient.WechatScope> |
getScopes() |
void |
setScopes(List<WechatClient.WechatScope> scopes) |
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 List<WechatClient.WechatScope> scopes
protected void clientInit()
IndirectClient
clientInit
in class OAuth20Client<WechatProfile>
protected String getOAuthScope()
public List<WechatClient.WechatScope> getScopes()
public void setScopes(List<WechatClient.WechatScope> scopes)
public void addScope(WechatClient.WechatScope scopes)
Copyright © 2019. All rights reserved.