This article discusses an issue in which federated users in Microsoft Entra ID must sign in two times before they can run MFA.
Original product version: Microsoft Entra ID
Original KB number: 4037806
Symptoms
Consider the following scenario:
- You have a Microsoft Entra tenant in which users are federated through Active Directory Federated Services (AD FS).
- In this tenant, Azure MFA Server or a third-party MFA provider is deployed in AD FS.
In this scenario, users may be forced to sign in by providing their user name and password two times before they are prompted for multi-factor authentication (MFA) and can complete the logon.
Cause
If the MsolDomainFederationSettings -SupportsMFA value is set to $true and the -PromptLoginBehavior value is set to TranslateToFreshPasswordAuth, Microsoft Entra ID sends the MFA request to the Identity Provider for step-up authentication. Microsoft Entra ID also asks for a fresh user login. This is accomplished by sending the following parameters to AD FS:
wauth=http://schemas.microsoft.com/claims/multipleauthn
wfresh=0
When this occurs, user is prompted a second time for their user name and password regardless of whether they just logged in. Users are prompted for MFA only after they enter their credentials a second time.
Resolution
To resolve this issue, you must configure Microsoft Entra ID to let AD FS natively handle this request by changing the -PromptLoginBehavior setting to NativeSupport. To do this, follow these steps:
Important: Your AD FS deployment must be running on Windows Server 2016 or Windows Server 2012 R2, and must have the July 2016 update KB 3172614 installed.
-
Run the following
Connectcommand to sign in to your Microsoft Entra ID administrator account:Connect-Msolservice[!NOTE] Run this command every time that you start a new session.
-
Configure Microsoft Entra ID to run federated user authentication by using the prompt=login behavior. This prevents the user from having to begin a new authentication. For example, run a command such as the following that includes your tenant-specific information:
Set-MsolDomainFederationSettings -DomainNameyour_domain_name-PreferredAuthenticationProtocol <current auth setting such as WsFed> -SupportsMfa $True -PromptLoginBehavior NativeSupport
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
