public class AuthTeambitionRequest extends AuthDefaultRequest
authStateCache, config, source
Constructor and Description |
---|
AuthTeambitionRequest(AuthConfig config) |
AuthTeambitionRequest(AuthConfig config,
AuthStateCache authStateCache) |
Modifier and Type | Method and Description |
---|---|
protected AuthToken |
getAccessToken(AuthCallback authCallback)
获取access token
|
protected AuthUser |
getUserInfo(AuthToken authToken)
使用token换取用户信息
|
AuthResponse |
refresh(AuthToken oldToken)
刷新access token (续期)
|
accessTokenUrl, authorize, authorize, doGetAuthorizationCode, doGetRevoke, doGetUserInfo, doPostAuthorizationCode, doPostRevoke, doPostUserInfo, getRealState, getScopes, login, refreshTokenUrl, revokeUrl, userInfoUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
revoke
public AuthTeambitionRequest(AuthConfig config)
public AuthTeambitionRequest(AuthConfig config, 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)
public AuthResponse refresh(AuthToken oldToken)
AuthRequest
oldToken
- 登录成功后返回的Token信息Copyright © 2021. All rights reserved.