logo
search
MFA Security Issues

How to Fix Microsoft OAuth 2 Authentication Error AADSTS50079 with MFA Enabled

Maira MehtabMaira Mehtab Oct 21, 2026 868 views

Question details

An OAuth 2 token request fails with error AADSTS50079 when multifactor authentication (MFA) is required, but it succeeds when MFA is disabled.

How to Fix Microsoft OAuth 2 Authentication Error AADSTS50079 with MFA Enabled
Product
Microsoft Entra ID
Device & OS
not provided
Scenario
Requesting an OAuth 2 authentication token in an environment that enforces multifactor authentication.
Observed behavior
The authentication flow is interrupted and the system returns error code AADSTS50079 because the current token flow cannot process the required MFA prompt.
Before you start

Ensure you have administrator access to the Microsoft Entra ID portal and verify what specific token grant type your application is currently using.

Solution 1Recommended

Review Entra ID Conditional Access Policies and Update Token Flow

Ensure your OAuth flow supports interactive authentication and verify whether Conditional Access rules are forcing MFA unexpectedly.

Error AADSTS50079 typically occurs because the application is using a non-interactive OAuth 2 flow (such as Resource Owner Password Credentials) while the organization's policies strictly enforce MFA. Non-interactive flows cannot prompt the user for a secondary authentication factor.

1
Sign in to Microsoft Entra admin center

Log into the portal using an account with Conditional Access Administrator privileges.

2
Access Conditional Access settings

Navigate to the 'Protection' menu on the left sidebar and select 'Conditional Access'.

3
Verify active MFA policies

Review your enabled policies to see if MFA is strictly enforced for your target application, specific user groups, or based on sign-in risk.

4
Switch to an interactive OAuth 2 flow

If MFA is intentionally required, update your application's authentication code to use an MFA-capable interactive flow, such as the Authorization Code flow or Device Code flow.

Review Entra ID Conditional Access Policies and Update Token Flow
Network and Location Factors: Recent location changes or routing traffic through a VPN can trigger risk-based Conditional Access rules, causing sudden mandatory MFA prompts for otherwise trusted accounts.
Free Microsoft Office alternative

Looking for a Simpler Productivity Solution? Try WPS Office

Complex authentication systems and restrictive cloud policies can sometimes slow down your workflow. If you need a hassle-free, lightweight, and highly compatible productivity suite, WPS Office provides an excellent alternative for your daily document needs.

Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Lightweight installation with extremely low system resource requirements.Seamless offline editing capabilities without relying on complex cloud authentication flows.Free and user-friendly interface for immediate, uninterrupted productivity.
microsoft office alternative - wps office

Frequently Asked Questions

What does error AADSTS50079 mean in Microsoft OAuth 2?

Error AADSTS50079 indicates that multi-factor authentication (MFA) is required by an active policy (such as Conditional Access), but the authentication flow being used does not support prompting the user to complete the MFA challenge.

Which OAuth 2 flows support MFA in Microsoft Entra ID?

Interactive flows, such as the Authorization Code flow and the Device Code flow, support MFA. These flows allow a browser or interactive prompt to securely ask the user for their secondary authentication factor.

Can using a VPN trigger an MFA requirement in Microsoft Entra ID?

Yes. Connecting through a VPN changes your IP address and perceived login location. If your organization relies on risk-based Conditional Access policies, logging in from an unfamiliar IP address can trigger an immediate and mandatory MFA prompt.