fix: some races when accessing ldap/openid config globally (#14978)

This commit is contained in:
Harshavardhana
2022-05-25 18:32:53 -07:00
committed by GitHub
parent 5aae7178ad
commit fd46a1c3b3
6 changed files with 83 additions and 11 deletions

View File

@@ -218,7 +218,7 @@ func getClaimsFromTokenWithSecret(token, secret string) (map[string]interface{},
}
// If AuthZPlugin is set, return without any further checks.
if globalAuthZPlugin != nil {
if newGlobalAuthZPluginFn() != nil {
return claims.Map(), nil
}