mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-26 03:11:25 +01:00
Added an OIDC AllowGroups option for authorization.
This commit is contained in:
committed by
Kristoffer Dalby
parent
4453728614
commit
70f2f5d750
@@ -96,6 +96,7 @@ type OIDCConfig struct {
|
||||
ExtraParams map[string]string
|
||||
AllowedDomains []string
|
||||
AllowedUsers []string
|
||||
AllowedGroups []string
|
||||
StripEmaildomain bool
|
||||
}
|
||||
|
||||
@@ -568,6 +569,7 @@ func GetHeadscaleConfig() (*Config, error) {
|
||||
ExtraParams: viper.GetStringMapString("oidc.extra_params"),
|
||||
AllowedDomains: viper.GetStringSlice("oidc.allowed_domains"),
|
||||
AllowedUsers: viper.GetStringSlice("oidc.allowed_users"),
|
||||
AllowedGroups: viper.GetStringSlice("oidc.allowed_groups"),
|
||||
StripEmaildomain: viper.GetBool("oidc.strip_email_domain"),
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user