Documentation ¶
Index ¶
- func NewOAuth2Driver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
- func Register(factory IOAuth2DriverFactory)
- type IOAuth2Driver
- type IOAuth2DriverFactory
- type SOAuth2BaseDriver
- type SOAuth2Driver
- func (self *SOAuth2Driver) Authenticate(ctx context.Context, ident mcclient.SAuthenticationIdentity) (*api.SUserExtended, error)
- func (self *SOAuth2Driver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)
- func (self *SOAuth2Driver) Probe(ctx context.Context) error
- func (self *SOAuth2Driver) Sync(ctx context.Context) error
- type SOAuth2DriverClass
- func (self *SOAuth2DriverClass) ForceSyncUser() bool
- func (self *SOAuth2DriverClass) GetDefaultIconUri(tmpName string) string
- func (self *SOAuth2DriverClass) IsSso() bool
- func (self *SOAuth2DriverClass) Name() string
- func (self *SOAuth2DriverClass) NewDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
- func (self *SOAuth2DriverClass) SingletonInstance() bool
- func (self *SOAuth2DriverClass) SyncMethod() string
- func (self *SOAuth2DriverClass) ValidateConfig(ctx context.Context, userCred mcclient.TokenCredential, template string, ...) (api.TConfigs, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOAuth2Driver ¶
func Register ¶
func Register(factory IOAuth2DriverFactory)
Types ¶
type IOAuth2Driver ¶
type IOAuth2DriverFactory ¶
type IOAuth2DriverFactory interface { NewDriver(appId string, secret string) IOAuth2Driver TemplateName() string IdpAttributeOptions() api.SIdpAttributeOptions ValidateConfig(conf api.SOAuth2IdpConfigOptions) error }
type SOAuth2BaseDriver ¶
type SOAuth2Driver ¶
type SOAuth2Driver struct { driver.SBaseIdentityDriver // contains filtered or unexported fields }
OAuth2.0
func (*SOAuth2Driver) Authenticate ¶
func (self *SOAuth2Driver) Authenticate(ctx context.Context, ident mcclient.SAuthenticationIdentity) (*api.SUserExtended, error)
func (*SOAuth2Driver) GetSsoRedirectUri ¶
type SOAuth2DriverClass ¶
type SOAuth2DriverClass struct{}
func (*SOAuth2DriverClass) ForceSyncUser ¶
func (self *SOAuth2DriverClass) ForceSyncUser() bool
func (*SOAuth2DriverClass) GetDefaultIconUri ¶
func (self *SOAuth2DriverClass) GetDefaultIconUri(tmpName string) string
func (*SOAuth2DriverClass) IsSso ¶
func (self *SOAuth2DriverClass) IsSso() bool
func (*SOAuth2DriverClass) Name ¶
func (self *SOAuth2DriverClass) Name() string
func (*SOAuth2DriverClass) NewDriver ¶
func (self *SOAuth2DriverClass) NewDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
func (*SOAuth2DriverClass) SingletonInstance ¶
func (self *SOAuth2DriverClass) SingletonInstance() bool
func (*SOAuth2DriverClass) SyncMethod ¶
func (self *SOAuth2DriverClass) SyncMethod() string
func (*SOAuth2DriverClass) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.