Documentation ¶
Index ¶
- Constants
- func NewWechatOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver
- type SWechatDriverFactory
- func (drv SWechatDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions
- func (drv SWechatDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver
- func (drv SWechatDriverFactory) TemplateName() string
- func (drv SWechatDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error
- type SWechatOAuth2Driver
Constants ¶
View Source
const ( AccessTokenUrl = "https://api.weixin.qq.com/sns/oauth2/access_token" UserInfoUrl = "https://api.weixin.qq.com/sns/userinfo" )
View Source
const (
AuthUrl = "https://open.weixin.qq.com/connect/qrconnect"
)
Variables ¶
This section is empty.
Functions ¶
func NewWechatOAuth2Driver ¶
func NewWechatOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver
Types ¶
type SWechatDriverFactory ¶
type SWechatDriverFactory struct{}
func (SWechatDriverFactory) IdpAttributeOptions ¶
func (drv SWechatDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions
func (SWechatDriverFactory) NewDriver ¶
func (drv SWechatDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver
func (SWechatDriverFactory) TemplateName ¶
func (drv SWechatDriverFactory) TemplateName() string
func (SWechatDriverFactory) ValidateConfig ¶
func (drv SWechatDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error
type SWechatOAuth2Driver ¶
type SWechatOAuth2Driver struct {
oauth2.SOAuth2BaseDriver
}
func (*SWechatOAuth2Driver) Authenticate ¶
func (*SWechatOAuth2Driver) GetSsoRedirectUri ¶
Click to show internal directories.
Click to hide internal directories.