Skip to content

Commit a042c20

Browse files
committed
fix microsoft active directory config
1 parent 7a76b78 commit a042c20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/oauth/oauth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ func InitOAuth() error {
171171
microsoftClientSecret = ""
172172
}
173173
microsoftActiveDirTenantID, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyMicrosoftActiveDirectoryTenantID)
174-
if err != nil || microsoftActiveDirTenantID == "" {
175-
microsoftActiveDirTenantID = "common"
174+
if err != nil {
175+
microsoftActiveDirTenantID = ""
176176
}
177177
if microsoftClientID != "" && microsoftClientSecret != "" && microsoftActiveDirTenantID != "" {
178178
p, err := oidc.NewProvider(ctx, fmt.Sprintf("https://login.microsoftonline.com/%s/v2.0", microsoftActiveDirTenantID))

0 commit comments

Comments
 (0)