saml

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: 17 Imported by: 0

Documentation

Index

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

func NewSAMLDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)

Types

type SSAMLDriver

type SSAMLDriver struct {
	driver.SBaseIdentityDriver
	// contains filtered or unexported fields
}

SAML 2.0 Service Provider Driver

func (*SSAMLDriver) Authenticate

func (*SSAMLDriver) GetSsoCallbackUri

func (self *SSAMLDriver) GetSsoCallbackUri(callbackUrl string) string

func (*SSAMLDriver) GetSsoRedirectUri

func (self *SSAMLDriver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)

func (*SSAMLDriver) Probe

func (self *SSAMLDriver) Probe(ctx context.Context) error

func (*SSAMLDriver) Sync

func (self *SSAMLDriver) Sync(ctx context.Context) error

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

func (self *SSAMLDriverClass) ValidateConfig(ctx context.Context, userCred mcclient.TokenCredential, template string, tconf api.TConfigs, idpId, domainId string) (api.TConfigs, error)

Jump to

Keyboard shortcuts

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