Versions in this module Expand all Collapse all v1 v1.2.8 Nov 2, 2022 v1.2.7 Nov 2, 2022 Changes in this version + type AuthConfig struct + ClientId string + ClientSecret string + RedirectUrl string + type AuthDouYin struct + func NewAuthDouYin(conf *AuthConfig) *AuthDouYin + func (a *AuthDouYin) GetRedirectUrl(state string) (*result.CodeResult, error) + func (a *AuthDouYin) GetToken(code string) (*result.TokenResult, error) + func (a *AuthDouYin) GetUserInfo(openId string, accessToken string) (*result.UserResult, error) + type AuthQq struct + func NewAuthQq(conf *AuthConfig) *AuthQq + func (a *AuthQq) GetAppOpenId(accessToken string) (*result.TokenResult, error) + func (a *AuthQq) GetRedirectUrl(state string) (*result.CodeResult, error) + func (a *AuthQq) GetUserInfo(accessToken string, openId string) (*result.UserResult, error) + func (a *AuthQq) GetWebAccessToken(code string) (*result.TokenResult, error) + type AuthWb struct + func NewAuthWb(conf *AuthConfig) *AuthWb + func (a *AuthWb) GetRedirectUrl(state string) (*result.CodeResult, error) + func (a *AuthWb) GetToken(code string) (*result.TokenResult, error) + func (a *AuthWb) GetUserInfo(openId string, accessToken string) (*result.UserResult, error) + type AuthWxMini struct + func NewAuthWxMini(conf *AuthConfig) *AuthWxMini + func (a *AuthWxMini) GetAccessToken() (*result.TokenResult, error) + func (a *AuthWxMini) GetMobileNumber(sessionKey string, encryptedData string, iv string) (*result.WxMobileResult, error) + func (a *AuthWxMini) GetSessionKey(code string) (*result.TokenResult, error) + func (a *AuthWxMini) GetUserInfo(sessionKey string, encryptedData string, iv string) (*result.UserResult, error) + type AuthWxWechat struct + func NewAuthWxWechat(conf *AuthConfig) *AuthWxWechat + func (a *AuthWxWechat) GetAppAccessToken(code string) (*result.TokenResult, error) + func (a *AuthWxWechat) GetRedirectUrl(state string) (*result.CodeResult, error) + func (a *AuthWxWechat) GetTicket(access_token string) (*result.TicketResult, error) + func (a *AuthWxWechat) GetTicketAccessToken() (*result.TicketResult, error) + func (a *AuthWxWechat) GetUserInfo(accessToken string, openId string) (*result.UserResult, error) + func (a *AuthWxWechat) GetWebAccessToken(code string) (*result.TokenResult, error) + type BaseRequest struct + AccessTokenUrl string + OpenIdUrl string + RefreshUrl string + TokenUrl string + func (*BaseRequest) GetState(state string) string + func (b *BaseRequest) Set(sourceName utils.RegisterSource, cfg *AuthConfig)