Documentation ¶
Index ¶
- Constants
- type AccessTokenResp
- type AuthCodeResp
- type OAuth
- func (auth *OAuth) GetAppId() string
- func (auth *OAuth) GetAuthCode(state string) (string, error)
- func (auth *OAuth) GetOpenId(accessToken string) (string, error)
- func (auth *OAuth) GetOpenIdWithAuthCode(authCode string) (string, error)
- func (auth *OAuth) GetToken(code string) (*AccessTokenResp, error)
- func (auth *OAuth) Provide(ctx context.Context) interface{}
- type OpenidResp
- type Option
- type Options
Constants ¶
View Source
const (
URL = "https://graph.qq.com/oauth2.0/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResp ¶
type AuthCodeResp ¶
type OAuth ¶
type OAuth struct {
// contains filtered or unexported fields
}
func (*OAuth) GetAuthCode ¶
GetAuthCode 获取登录的 Auth code 返回登录扫码的 URL
func (*OAuth) GetOpenIdWithAuthCode ¶
GetOpenIdWithAuthCode 获取 auth code 直接获取用户 openid
type OpenidResp ¶
type Option ¶
type Option func(*Options)
func WithAppKey ¶
func WithDisplay ¶
func WithProduct ¶
func WithRedirectUri ¶
Click to show internal directories.
Click to hide internal directories.