1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-12-15 23:41:26 +02:00

Move generic OIDC functionality to be available to all providers

This commit is contained in:
Nick Meves
2020-11-27 16:17:59 -08:00
parent a1877434b2
commit 74ac4274c6
6 changed files with 551 additions and 283 deletions

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)