Documentation ¶
Index ¶
- type Oauth
- func (oauth *Oauth) GetRedirectURL(redirectURI, scope, state, appID string) (string, error)
- func (oauth *Oauth) GetUserAccessToken(code, appID, componentAccessToken string) (result officialOauth.ResAccessToken, err error)
- func (oauth *Oauth) Redirect(writer http.ResponseWriter, req *http.Request, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth ¶
Oauth 平台代发起oauth2网页授权
func (*Oauth) GetRedirectURL ¶
GetRedirectURL 第三方平台 - 获取跳转的url地址
func (*Oauth) GetUserAccessToken ¶
func (oauth *Oauth) GetUserAccessToken(code, appID, componentAccessToken string) (result officialOauth.ResAccessToken, err error)
GetUserAccessToken 第三方平台 - 通过网页授权的code 换取access_token(区别于context中的access_token)
Click to show internal directories.
Click to hide internal directories.