Documentation ¶
Index ¶
- Constants
- func NewFeishuOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver
- type SFeishuDriverFactory
- func (drv SFeishuDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions
- func (drv SFeishuDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver
- func (drv SFeishuDriverFactory) TemplateName() string
- func (drv SFeishuDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error
- type SFeishuOAuth2Driver
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 (*SFeishuOAuth2Driver) GetSsoRedirectUri ¶
Click to show internal directories.
Click to hide internal directories.