From 20fc0cbf35c58a29f22c7b5e66afb67c3993a861 Mon Sep 17 00:00:00 2001 From: Gabriel MABILLE Date: Wed, 25 Oct 2023 14:28:12 +0200 Subject: [PATCH] Chore: Allow env overrides for the `extended_jwt` config (#77132) Chore: Allow env overrides for the extended_jwt config --- pkg/setting/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index 75c72d471b4..1983bfbb2f9 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -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("")