Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSAMLIDP

func NewSAMLIDP(config *Config) (http.Handler, error)

Types

type Config

type Config struct {
	BaseURL string `yaml:"base_url"`

	UsersFile      string `yaml:"users_file"`
	EmailUsernames bool   `yaml:"email_usernames"`

	// SAML X509 credentials.
	CertificateFile string `yaml:"certificate_file"`
	PrivateKeyFile  string `yaml:"private_key_file"`

	// SSO configuration.
	SessionAuthKey    string `yaml:"session_auth_key"`
	SessionEncKey     string `yaml:"session_enc_key"`
	SSOLoginServerURL string `yaml:"sso_server_url"`
	SSOPublicKeyFile  string `yaml:"sso_public_key_file"`
	SSODomain         string `yaml:"sso_domain"`

	// Service provider config.
	ServiceProviders []*serviceProvider `yaml:"service_providers"`
	// contains filtered or unexported fields
}

func (*Config) GetAllSSOGroups

func (c *Config) GetAllSSOGroups() []string

func (*Config) GetSSOGroups

func (c *Config) GetSSOGroups(serviceProviderID string) []string

func (*Config) GetServiceProvider

func (c *Config) GetServiceProvider(r *http.Request, serviceProviderID string) (*saml.EntityDescriptor, error)

Source Files