Package me.zhyd.oauth.request
Class AuthTeambitionRequest
java.lang.Object
me.zhyd.oauth.request.AuthDefaultRequest
me.zhyd.oauth.request.AuthTeambitionRequest
- All Implemented Interfaces:
AuthRequest
Teambition授权登录
- Since:
- 1.9.0
- Author:
- yadong.zhang (yadong.zhang0415(a)gmail.com)
-
Field Summary
Fields inherited from class me.zhyd.oauth.request.AuthDefaultRequest
authStateCache, config, source -
Constructor Summary
ConstructorsConstructorDescriptionAuthTeambitionRequest(AuthConfig config) AuthTeambitionRequest(AuthConfig config, AuthStateCache authStateCache) -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(AuthCallback authCallback) 获取access tokengetUserInfo(AuthToken authToken) 使用token换取用户信息刷新access token (续期)Methods inherited from class me.zhyd.oauth.request.AuthDefaultRequest
accessTokenUrl, authorize, authorize, checkCode, checkConfig, doGetAuthorizationCode, doGetRevoke, doGetUserInfo, doPostAuthorizationCode, doPostRevoke, doPostUserInfo, getRealState, getScopes, login, refreshTokenUrl, responseError, revokeUrl, userInfoUrlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.zhyd.oauth.request.AuthRequest
revoke
-
Constructor Details
-
AuthTeambitionRequest
-
AuthTeambitionRequest
-
-
Method Details
-
getAccessToken
Description copied from interface:AuthRequest获取access token- Parameters:
authCallback- 回调返回的参数- Returns:
- 所有信息
- See Also:
-
getUserInfo
Description copied from interface:AuthRequest使用token换取用户信息- Parameters:
authToken- token信息- Returns:
- 用户信息
- See Also:
-
refresh
Description copied from interface:AuthRequest刷新access token (续期)- Parameters:
oldToken- 登录成功后返回的Token信息- Returns:
- AuthResponse
-