fix(openid): log error when config is still using array value
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
feb6b708e3
commit
b8c4e0a91e
@ -41,7 +41,11 @@ func GetAllProviders() (providers []*Provider, err error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
rawProvider := rawProviders.(map[string]interface{})
|
||||
rawProvider, is := rawProviders.(map[string]interface{})
|
||||
if !is {
|
||||
log.Criticalf("It looks like your openid configuration is in the wrong format. Please check the docs for the correct format.")
|
||||
return
|
||||
}
|
||||
|
||||
for key, p := range rawProvider {
|
||||
var pi map[string]interface{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user