fix(openid): log error when config is still using array value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2024-11-18 12:16:38 +01:00
parent feb6b708e3
commit b8c4e0a91e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -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{}