mirror of https://github.com/grafana/grafana.git
Chore: Allow env overrides for the `extended_jwt` config (#77132)
Chore: Allow env overrides for the extended_jwt config
This commit is contained in:
parent
9bf7eb5fbc
commit
20fc0cbf35
|
|
@ -1630,7 +1630,7 @@ func readAuthSettings(iniFile *ini.File, cfg *Cfg) (err error) {
|
|||
cfg.JWTAuthSkipOrgRoleSync = authJWT.Key("skip_org_role_sync").MustBool(false)
|
||||
|
||||
// Extended JWT auth
|
||||
authExtendedJWT := iniFile.Section("auth.extended_jwt")
|
||||
authExtendedJWT := cfg.SectionWithEnvOverrides("auth.extended_jwt")
|
||||
cfg.ExtendedJWTAuthEnabled = authExtendedJWT.Key("enabled").MustBool(false)
|
||||
cfg.ExtendedJWTExpectAudience = authExtendedJWT.Key("expect_audience").MustString("")
|
||||
cfg.ExtendedJWTExpectIssuer = authExtendedJWT.Key("expect_issuer").MustString("")
|
||||
|
|
|
|||
Loading…
Reference in New Issue