Skip to content

Commit

Permalink
fix microsoft active directory config
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Aug 3, 2023
1 parent a850366 commit e5400bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/oauth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit e5400bc

Please sign in to comment.