saml

package
v0.0.0-...-f5c2ca4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

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    common.SessionAuthenticationKey `yaml:"session_auth_key"`
	SessionEncKey     common.SessionEncryptionKey     `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)

Jump to

Keyboard shortcuts

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