Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultForwardHeaders = map[string]oidfed.SliceOrSingleValue[model.Claim]{
"X-Forwarded-User": {
"preferred_username",
"sub",
},
"X-Forwarded-Email": {"email"},
"X-Forwarded-Provider": {"iss"},
"X-Forwarded-Subject": {"sub"},
"X-Forwarded-Groups": {
"entitlements",
"groups",
},
"X-Forwarded-Name": {"name"},
}
View Source
var DefaultMemCachedClaims = map[string]oidfed.SliceOrSingleValue[model.Claim]{
"UserName": {
"preferred_username",
"sub",
},
"Groups": {"groups"},
"Email": {"email"},
"Name": {"name"},
"GivenName": {"given_name"},
"Provider": {"iss"},
"Subject": {"sub"},
}
Functions ¶
func MustLoadConfig ¶
func MustLoadConfig()
Types ¶
type AuthRule ¶
type AuthRule struct {
Domain string `yaml:"domain"`
DomainRegex string `yaml:"domain_regex"`
DomainPattern *regexp.Regexp `yaml:"-"`
Path string `yaml:"path"`
PathRegex string `yaml:"path_regex"`
PathPattern *regexp.Regexp `yaml:"-"`
Require oidfed.SliceOrSingleValue[map[model.Claim]oidfed.SliceOrSingleValue[string]] `yaml:"require"`
ForwardHeaders map[string]oidfed.SliceOrSingleValue[model.Claim] `yaml:"forward_headers"`
ForwardHeadersPrefix string `yaml:"forward_headers_prefix"`
RedirectStatusCode int `yaml:"redirect_status"`
}
type Config ¶
type Config struct {
Server serverConf `yaml:"server"`
Logging loggingConf `yaml:"logging"`
Federation federationConf `yaml:"federation"`
Auth authConf `yaml:"auth"`
SessionStorage sessionConf `yaml:"sessions"`
Signing signingConf `yaml:"signing"`
DebugAuth bool `yaml:"debug_auth"`
OPDiscovery opDiscoveryConf `yaml:"op_discovery"`
}
Config holds the configuration for this application
type LoggerConf ¶
LoggerConf holds configuration related to logging
Click to show internal directories.
Click to hide internal directories.