dingtalk

package
v0.0.0-...-6410feb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (drv *SDingtalkOAuth2Driver) Authenticate(ctx context.Context, code string) (map[string][]string, error)

func (*SDingtalkOAuth2Driver) GetSsoRedirectUri

func (drv *SDingtalkOAuth2Driver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL