public abstract class AbstractAuthWeChatEnterpriseRequest extends AuthDefaultRequest
企业微信登录父类
authStateCache, config, source
Constructor and Description |
---|
AbstractAuthWeChatEnterpriseRequest(AuthConfig config,
AuthSource source) |
AbstractAuthWeChatEnterpriseRequest(AuthConfig config,
AuthSource source,
AuthStateCache authStateCache) |
Modifier and Type | Method and Description |
---|---|
protected String |
accessTokenUrl(String code)
返回获取accessToken的url
|
protected AuthToken |
getAccessToken(AuthCallback authCallback)
获取access token
|
protected AuthUser |
getUserInfo(AuthToken authToken)
使用token换取用户信息
|
protected String |
userInfoUrl(AuthToken authToken)
返回获取userInfo的url
|
authorize, authorize, doGetAuthorizationCode, doGetRevoke, doGetUserInfo, doPostAuthorizationCode, doPostRevoke, doPostUserInfo, getRealState, getScopes, login, refreshTokenUrl, revokeUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refresh, revoke
public AbstractAuthWeChatEnterpriseRequest(AuthConfig config, AuthSource source)
public AbstractAuthWeChatEnterpriseRequest(AuthConfig config, AuthSource source, AuthStateCache authStateCache)
protected AuthToken getAccessToken(AuthCallback authCallback)
AuthDefaultRequest
getAccessToken
in class AuthDefaultRequest
authCallback
- 授权成功后的回调参数AuthDefaultRequest.authorize()
,
AuthDefaultRequest.authorize(String)
protected AuthUser getUserInfo(AuthToken authToken)
AuthDefaultRequest
getUserInfo
in class AuthDefaultRequest
authToken
- token信息AuthDefaultRequest.getAccessToken(AuthCallback)
protected String accessTokenUrl(String code)
accessTokenUrl
in class AuthDefaultRequest
code
- 授权码protected String userInfoUrl(AuthToken authToken)
userInfoUrl
in class AuthDefaultRequest
authToken
- 用户授权后的tokenCopyright © 2021. All rights reserved.