Documentation ¶
Index ¶
- Constants
- func NewQywxOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver
- type Attr
- type Extattr
- type ExternalProfile
- type Miniprogram
- type SBaseData
- type SQywxDriverFactory
- func (drv SQywxDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions
- func (drv SQywxDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver
- func (drv SQywxDriverFactory) TemplateName() string
- func (drv SQywxDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error
- type SQywxOAuth2Driver
- type Text
- type Web
Constants ¶
View Source
const ( AccessTokenUrl = "https://qyapi.weixin.qq.com/cgi-bin/gettoken" UserIdUrl = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo" UserInfoUrl = "https://qyapi.weixin.qq.com/cgi-bin/user/get" )
View Source
const (
AuthUrl = "https://open.work.weixin.qq.com/wwopen/sso/qrConnect"
)
Variables ¶
This section is empty.
Functions ¶
func NewQywxOAuth2Driver ¶
func NewQywxOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver
Types ¶
type Attr ¶
type Attr struct { Type int64 `json:"type"` Name string `json:"name"` Text *Text `json:"text,omitempty"` Web *Web `json:"web,omitempty"` Miniprogram *Miniprogram `json:"miniprogram,omitempty"` }
type ExternalProfile ¶
type Miniprogram ¶
type SQywxDriverFactory ¶
type SQywxDriverFactory struct{}
func (SQywxDriverFactory) IdpAttributeOptions ¶
func (drv SQywxDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions
func (SQywxDriverFactory) NewDriver ¶
func (drv SQywxDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver
func (SQywxDriverFactory) TemplateName ¶
func (drv SQywxDriverFactory) TemplateName() string
func (SQywxDriverFactory) ValidateConfig ¶
func (drv SQywxDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error
type SQywxOAuth2Driver ¶
type SQywxOAuth2Driver struct {
oauth2.SOAuth2BaseDriver
}
func (*SQywxOAuth2Driver) Authenticate ¶
func (*SQywxOAuth2Driver) GetSsoRedirectUri ¶
Click to show internal directories.
Click to hide internal directories.