feishu

package
v0.3.11-8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AppAccessTokenUrl = "https://open.feishu.cn/open-apis/auth/v3/app_access_token/internal/"
	AccessTokenUrl    = "https://open.feishu.cn/open-apis/authen/v1/access_token"
	UserInfoUrl       = "https://open.feishu.cn/open-apis/authen/v1/user_info"
)
View Source
const (
	AuthUrl = "https://open.feishu.cn/open-apis/authen/v1/index"
)

Variables

This section is empty.

Functions

func NewFeishuOAuth2Driver

func NewFeishuOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver

Types

type SFeishuDriverFactory

type SFeishuDriverFactory struct{}

func (SFeishuDriverFactory) IdpAttributeOptions

func (drv SFeishuDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions

func (SFeishuDriverFactory) NewDriver

func (drv SFeishuDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver

func (SFeishuDriverFactory) TemplateName

func (drv SFeishuDriverFactory) TemplateName() string

func (SFeishuDriverFactory) ValidateConfig

func (drv SFeishuDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error

type SFeishuOAuth2Driver

type SFeishuOAuth2Driver struct {
	oauth2.SOAuth2BaseDriver
}

func (*SFeishuOAuth2Driver) Authenticate

func (drv *SFeishuOAuth2Driver) Authenticate(ctx context.Context, code string) (map[string][]string, error)

func (*SFeishuOAuth2Driver) GetSsoRedirectUri

func (drv *SFeishuOAuth2Driver) 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