Skip to content

Commit e5400bc

Browse files
committed
fix microsoft active directory config
1 parent a850366 commit e5400bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/oauth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func InitOAuth() error {
171171
microsoftClientSecret = ""
172172
}
173173
microsoftActiveDirTenantID, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyMicrosoftActiveDirectoryTenantID)
174-
if err != nil {
174+
if err != nil || microsoftActiveDirTenantID == "" {
175175
microsoftActiveDirTenantID = "common"
176176
}
177177
if microsoftClientID != "" && microsoftClientSecret != "" && microsoftActiveDirTenantID != "" {

0 commit comments

Comments
 (0)