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