Documentation ¶
Index ¶
- Variables
- func NewSAMLDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
- type SSAMLDriver
- func (self *SSAMLDriver) Authenticate(ctx context.Context, ident mcclient.SAuthenticationIdentity) (*api.SUserExtended, error)
- func (self *SSAMLDriver) GetSsoCallbackUri(callbackUrl string) string
- func (self *SSAMLDriver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)
- func (self *SSAMLDriver) Probe(ctx context.Context) error
- func (self *SSAMLDriver) Sync(ctx context.Context) error
- type SSAMLDriverClass
- func (self *SSAMLDriverClass) ForceSyncUser() bool
- func (self *SSAMLDriverClass) GetDefaultIconUri(tmpName string) string
- func (self *SSAMLDriverClass) IsSso() bool
- func (self *SSAMLDriverClass) Name() string
- func (self *SSAMLDriverClass) NewDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
- func (self *SSAMLDriverClass) SingletonInstance() bool
- func (self *SSAMLDriverClass) SyncMethod() string
- func (self *SSAMLDriverClass) ValidateConfig(ctx context.Context, userCred mcclient.TokenCredential, template string, ...) (api.TConfigs, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SAMLTestTemplate = api.SSAMLIdpConfigOptions{ EntityId: "https://samltest.id/saml/idp", RedirectSSOUrl: "https://samltest.id/idp/profile/SAML2/Redirect/SSO", SIdpAttributeOptions: api.SIdpAttributeOptions{ UserNameAttribute: "urn:oid:0.9.2342.19200300.100.1.1", UserIdAttribute: "urn:oid:0.9.2342.19200300.100.1.1", UserDisplaynameAttribtue: "urn:oid:2.16.840.1.113730.3.1.241", UserEmailAttribute: "urn:oid:0.9.2342.19200300.100.1.3", UserMobileAttribute: "urn:oid:2.5.4.20", }, } AzureADTemplate = api.SSAMLIdpConfigOptions{ SIdpAttributeOptions: api.SIdpAttributeOptions{ UserNameAttribute: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", UserIdAttribute: "http://schemas.microsoft.com/identity/claims/objectidentifier", UserDisplaynameAttribtue: "http://schemas.microsoft.com/identity/claims/displayname", UserEmailAttribute: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", UserMobileAttribute: "", }, } )
Functions ¶
func NewSAMLDriver ¶
Types ¶
type SSAMLDriver ¶
type SSAMLDriver struct { driver.SBaseIdentityDriver // contains filtered or unexported fields }
SAML 2.0 Service Provider Driver
func (*SSAMLDriver) Authenticate ¶
func (self *SSAMLDriver) Authenticate(ctx context.Context, ident mcclient.SAuthenticationIdentity) (*api.SUserExtended, error)
func (*SSAMLDriver) GetSsoCallbackUri ¶
func (self *SSAMLDriver) GetSsoCallbackUri(callbackUrl string) string
func (*SSAMLDriver) GetSsoRedirectUri ¶
type SSAMLDriverClass ¶
type SSAMLDriverClass struct{}
func (*SSAMLDriverClass) ForceSyncUser ¶
func (self *SSAMLDriverClass) ForceSyncUser() bool
func (*SSAMLDriverClass) GetDefaultIconUri ¶
func (self *SSAMLDriverClass) GetDefaultIconUri(tmpName string) string
func (*SSAMLDriverClass) IsSso ¶
func (self *SSAMLDriverClass) IsSso() bool
func (*SSAMLDriverClass) Name ¶
func (self *SSAMLDriverClass) Name() string
func (*SSAMLDriverClass) NewDriver ¶
func (self *SSAMLDriverClass) NewDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
func (*SSAMLDriverClass) SingletonInstance ¶
func (self *SSAMLDriverClass) SingletonInstance() bool
func (*SSAMLDriverClass) SyncMethod ¶
func (self *SSAMLDriverClass) SyncMethod() string
func (*SSAMLDriverClass) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.