Skip to content

Commit 1e0268b

Browse files
committed
Fix condition
1 parent c8a9609 commit 1e0268b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Surfnet/AzureMfa/Application/Service/AzureMfaService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function createAuthnRequest(User $user, bool $forceAuthn = false): string
160160
$query = $authnRequest->buildRequestQuery();
161161

162162
// For Azure, add a "whr" query parameter with the domain of the user we want to authenticate.
163-
if (!$azureMfaIdentityProvider->isAzureAD()) {
163+
if ($azureMfaIdentityProvider->isAzureAD()) {
164164
// EntraID does not accept a Subject like ADFS does, and there is no other way to pass the full user ID.
165165
// The Windows home realm hint (whr) parameter can help bypass the Microsoft Account Picker
166166
// (Home Realm Discovery) when the user has multiple accounts, thereby improving the user (SSO) experience.

0 commit comments

Comments
 (0)