From e5400bc7bd6fb59c0f53cb51d8e519715fc78458 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Thu, 3 Aug 2023 12:33:20 +0530 Subject: [PATCH] fix microsoft active directory config --- server/oauth/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/oauth/oauth.go b/server/oauth/oauth.go index 2d41252..b102a25 100644 --- a/server/oauth/oauth.go +++ b/server/oauth/oauth.go @@ -171,7 +171,7 @@ func InitOAuth() error { microsoftClientSecret = "" } microsoftActiveDirTenantID, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyMicrosoftActiveDirectoryTenantID) - if err != nil { + if err != nil || microsoftActiveDirTenantID == "" { microsoftActiveDirTenantID = "common" } if microsoftClientID != "" && microsoftClientSecret != "" && microsoftActiveDirTenantID != "" {