Fix Office 365 AD FS Authentication Prompts for Internal and External Users
Question details
The user needs to correct Office 365 federation authentication so internal users can use single sign-on and external users receive the appropriate sign-in page.

- Product
- Microsoft 365 and Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- Internal and external users sign in to Office 365 through an AD FS deployment.
- Observed behavior
- External users receive a Windows Authentication prompt, while internal users experience single sign-on problems.
Identify the AD FS version, the federation servers and proxies handling each connection, and the browsers affected. Check whether the issue occurs for all external users or only specific accounts or browsers.
Check AD FS authentication policies and proxy routing
Use this approach for AD FS deployments managed through authentication policies, rather than the legacy web.config method.
On an AD FS server, open AD FS Management and go to Authentication Policies. Edit the global primary authentication settings and review the methods enabled for the intranet and extranet.
Enable Windows authentication for intranet users who need integrated SSO, and enable forms authentication for extranet users who should receive a sign-in page. Disable extranet Windows authentication if it is not required by your organization's policy.
Trace an external sign-in through your published federation URL and confirm it reaches the AD FS proxy or Web Application Proxy rather than an internal federation server directly.
Sign in to the Microsoft 365 portal from an internal domain-connected browser and from an external browser. If prompts persist, check browser integrated-authentication settings, federation configuration, TLS certificates, and AD FS event logs.

Adjust authentication order in legacy AD FS web.config files
Use this method only for a legacy AD FS deployment that uses the localAuthenticationTypes section of web.config.
Work on Office documents with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility to help you move existing files into your workflow. It does not repair Microsoft 365 or AD FS sign-in settings.

Frequently Asked Questions
Why do external users see a Windows Authentication prompt?
The extranet may be configured to offer Windows authentication, or external traffic may be reaching the wrong federation endpoint. Review the extranet authentication policy and trace the federation URL through the proxy.
Why does internal single sign-on still ask for credentials?
Confirm that Windows authentication is enabled for the intranet in AD FS Management. Also check that the browser permits integrated authentication for the federation URL and that the user is on an appropriate domain-connected network.
Should I edit web.config on every AD FS deployment?
No. The localAuthenticationTypes ordering applies to legacy deployments that use that configuration section. Newer AD FS versions manage primary authentication through authentication policies.
What should I check if changing authentication methods does not help?
Test internal and external sign-ins separately, then inspect AD FS event logs, federation settings, TLS certificates, proxy routing, and the affected browsers' authentication settings.




