Move generic OIDC functionality to be available to all providers

This commit is contained in:
Nick Meves
2020-12-21 16:52:04 -08:00
parent a1877434b2
commit 74ac4274c6
6 changed files with 551 additions and 283 deletions
+4 -1
View File
@@ -233,7 +233,10 @@ func parseProviderInfo(o *options.Options, msgs []string) []string {
p.ValidateURL, msgs = parseURL(o.ValidateURL, "validate", msgs)
p.ProtectedResource, msgs = parseURL(o.ProtectedResource, "resource", msgs)
// Make the OIDC Verifier accessible to all providers that can support it
// Make the OIDC options available to all providers that support it
p.AllowUnverifiedEmail = o.InsecureOIDCAllowUnverifiedEmail
p.EmailClaim = o.UserIDClaim
p.GroupsClaim = o.OIDCGroupsClaim
p.Verifier = o.GetOIDCVerifier()
p.SetAllowedGroups(o.AllowedGroups)