How to Fix Conditional Access policy does not allow legacy authentication
Last reviewed
Error message
Sign-in blocked because Conditional Access policy 'Block legacy authentication' applies to this request.
Legacy authentication is being phased out by Microsoft because it can't enforce MFA. The right answer is almost always to upgrade the client, not to weaken the policy.
What this error means
A Conditional Access policy is blocking sign-in because the client is using legacy/basic authentication, which Microsoft considers insecure.
Why this happens
An app or script is using legacy auth protocols (IMAP, POP, MAPI, or older Office clients) that don't support modern auth tokens.
Quick fix (for end users)
- Update the affected app to its latest version — most modern apps support modern auth.
- If using IMAP/POP, switch to a client that supports OAuth2.
Admin / engineer fix
Identify the legacy app via Sign-in logs in Entra → filter by Client app = 'Other clients'.
If the app is mission-critical and can't be upgraded, create a narrowly-scoped exception in Conditional Access — never disable the policy globally.
For service accounts that need IMAP, enable OAuth2 IMAP and use a modern auth library.
Step-by-step fix
Find the legacy app from Sign-in logs.
Upgrade to a modern-auth version, or create a scoped exception.
Retry sign-in.
Affected products
Microsoft Entra ID · Microsoft 365
Common variations of this error
People also see these phrasings of the same problem:
Legacy auth blockedBasic auth blocked Conditional Access
Still broken? Try these
- Some scripts use Send-MailMessage or older SMTP libraries — replace with Microsoft Graph or Send Mail via Graph API.
- Confirm the user account isn't accidentally inside an exception group.
Related errors
Related searches
- block legacy authentication entra
- modern auth imap
Frequently asked questions
Should I disable the policy?
No. Disabling the block-legacy-auth policy lets attackers brute-force passwords without ever needing MFA. Upgrade the affected client instead.
Browse more errors in Entra ID: Fix Microsoft Entra ID (Azure AD) errors. AADSTS error codes, admin consent, app role assignment, Conditional Access, and user lookup problems. Or paste your own error into the error decoder tool to find a match. You can also go back to the homepage to browse common errors by topic.