mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
fix crash when config is not properly initialized (#12714)
fixes #12709
This commit is contained in:
@@ -723,8 +723,8 @@ func loadConfig(objAPI ObjectLayer) error {
|
||||
func getOpenIDValidators(cfg openid.Config) *openid.Validators {
|
||||
validators := openid.NewValidators()
|
||||
|
||||
if cfg.JWKS.URL != nil {
|
||||
validators.Add(openid.NewJWT(cfg))
|
||||
if cfg.Enabled {
|
||||
validators.Add(&cfg)
|
||||
}
|
||||
|
||||
return validators
|
||||
|
||||
Reference in New Issue
Block a user