public abstract class AbstractAuthWeChatEnterpriseRequest extends AuthDefaultRequest
企业微信登录父类
authStateCache, config, source| 构造器和说明 |
|---|
AbstractAuthWeChatEnterpriseRequest(AuthConfig config,
AuthSource source) |
AbstractAuthWeChatEnterpriseRequest(AuthConfig config,
AuthSource source,
AuthStateCache authStateCache) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
accessTokenUrl(String code)
返回获取accessToken的url
|
private com.alibaba.fastjson.JSONObject |
checkResponse(String response)
校验请求结果
|
protected AuthToken |
getAccessToken(AuthCallback authCallback)
获取access token
|
private com.alibaba.fastjson.JSONObject |
getUserDetail(String accessToken,
String userId,
String userTicket)
用户详情
|
protected AuthUser |
getUserInfo(AuthToken authToken)
使用token换取用户信息
|
protected String |
userInfoUrl(AuthToken authToken)
返回获取userInfo的url
|
authorize, authorize, authToken, checkCode, copyConfig, doGetAuthorizationCode, doGetRevoke, doGetUserInfo, doPostAuthorizationCode, doPostRevoke, doPostUserInfo, getRealState, getScopes, login, refreshTokenUrl, responseError, revokeUrl, userInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrefresh, revokepublic AbstractAuthWeChatEnterpriseRequest(AuthConfig config, AuthSource source)
public AbstractAuthWeChatEnterpriseRequest(AuthConfig config, AuthSource source, AuthStateCache authStateCache)
protected AuthToken getAccessToken(AuthCallback authCallback)
AuthDefaultRequestgetAccessToken 在类中 AuthDefaultRequestauthCallback - 授权成功后的回调参数AuthDefaultRequest.authorize(),
AuthDefaultRequest.authorize(String)protected AuthUser getUserInfo(AuthToken authToken)
AuthDefaultRequestgetUserInfo 在类中 AuthDefaultRequestauthToken - token信息AuthDefaultRequest.getAccessToken(AuthCallback)private com.alibaba.fastjson.JSONObject checkResponse(String response)
response - 请求结果protected String accessTokenUrl(String code)
accessTokenUrl 在类中 AuthDefaultRequestcode - 授权码protected String userInfoUrl(AuthToken authToken)
userInfoUrl 在类中 AuthDefaultRequestauthToken - 用户授权后的tokenCopyright © 2023. All rights reserved.