Documentation ¶
Index ¶
- type Oauth
- func (oauth *Oauth) GetRedirectURL(appid, redirectUri, state string) (string, error)
- func (oauth *Oauth) GetUserId(accessToken, code string) (result UserId, err error)
- func (oauth *Oauth) GetWebAppRedirectURL(appid, redirectUri, state string) (string, error)
- func (oauth *Oauth) Redirect(writer http.ResponseWriter, req *http.Request, ...) error
- type UserId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth ¶
Oauth 保存用户授权信息
func (*Oauth) GetRedirectURL ¶
GetRedirectURL 构造网页授权链接
func (*Oauth) GetWebAppRedirectURL ¶
GetWebAppRedirectURL 构造扫码登录链接
Click to show internal directories.
Click to hide internal directories.