Federated user is prompted unexpectedly to enter account credentials
This article describes a scenario in which a federated user is prompted unexpectedly to enter their work or school account credentials when accessing Office 365, Azure, or Microsoft Intune.
Original product version: Azure Active Directory, Microsoft Intune, Azure Backup, Office 365 Identity Management
Original KB number: 2535227
When a federated user signs in Office 365, Microsoft Azure, or Microsoft Intune, the user is prompted unexpectedly to enter the work or school account credentials. After the user enters the credentials, the user is granted access to the cloud service.
Not all federated user authentication experiences are without a credential prompt. In certain scenarios, it's by design and expected that federated users are prompted to enter their credentials. Make sure that the credential prompt is unexpected before you continue.
This issue may occur for internal domain clients if one or more of the following conditions are true:
- An internal client resolves the Active Directory Federation Services (AD FS) endpoint to the IP address of the AD FS proxy service instead of to the IP address of the AD FS federation service.
- The security settings in Internet Explorer are not configured for single sign-on to AD FS.
- The proxy server settings in Internet Explorer are not configured for single sign-on to AD FS.
- The Internet Information Services (IIS) authentication settings on the AD FS server are configured incorrectly.
- The web browser does not support integrated Windows authentication.
- The client computer cannot connect to the on-premises Active Directory domain.
Resolution 1: Make sure that the DNS server has a host record for the AD FS endpoint
Make sure that the DNS server has a host record for the AD FS endpoint that is appropriate to the client computer that is experiencing this issue. For internal clients, this means that the internal DNS server should resolve the AD FS endpoint name to an internal IP address. For Internet clients, this means that the endpoint name should resolve to a public IP address. To test this on the client, follow these steps:
Select Start, select Run, type cmd, and then press Enter.
At the command prompt, type the following command, where the placeholder
sts.contoso.comrepresents the AD FS endpoint name:
If the output of the command shows an incorrect IP address, update the A record on the internal or external DNS server. For more information about how to do this, see Internet browser can't display the AD FS sign-in webpage for federated users Internet browser can't display the AD FS webpage when a federated user tries to sign in to Office 365, Azure, or Intune
Resolution 2: Check the local intranet zone and proxy server settings in Internet Explorer
Use one of the following procedures, as appropriate for your situation.
Check the local intranet zone and proxy server settings in Internet Explorer. To do this, follow these steps:
Start Internet Explorer.
On the Tools menu, select Internet Options.
Select the Security tab, select the Local intranet zone, and then select Sites.
In the Local intranet dialog box, select Advanced. In the Websites list, make sure that an entry (such as
sts.contoso.com) exists for the fully qualified DNS name of the AD FS service endpoint.
Select Close, and then select OK.
Use the following additional steps only if a network administrator configured a web proxy server in the on-premises environment:
Select the Connections tab, and then select LAN Settings.
Under Automatic configuration, select to clear the Automatically detect settings check box, and then select to clear the Use automatic configuration script check box.
Under Proxy server, select to select the Use a proxy server for your LAN check box, type the proxy server address and the port that it uses, and then select Advanced.
Under Exceptions, add your AD FS endpoint (such as
Select OK three times.
Manually configure the security settings for the security zone in Internet Explorer. The default security setting that causes the local intranet zone not to prompt for Windows authentication can be configured manually for any security zone in Internet Explorer. To customize the security zone of which the AD FS service name is already a part, follow these steps:
We highly discourage this configuration because it could result in the unintended submission of Integrated Windows Authentication traffic to websites.
- Start Internet Explorer.
- On the Tools menu, select Internet options.
- Select the Security tab, select the security zone in which the AD FS service name is already contained, and then select Custom level.
- In the Security Settings dialog box, scroll to the bottom to locate the User Authentication entry.
- Under Logon, select Automatic logon with current user name and password.
- select OK two times.
Resolution 3: Check the IIS authentication settings for the AD FS federation service and proxy service
Verify that the IIS authentication settings for the AD FS federation and proxy services are configured correctly. For more information, see A federated user is repeatedly prompted for credentials during sign-in to Office 365, Azure or Intune
Resolution 4: Use Internet Explorer or a third-party web browser
Use Internet Explorer or a third-party web browser that supports integrated Windows authentication.
Resolution 5: Verify connectivity to Active Directory
Log off from the client computer and then log on as an Active Directory user. If logon is successful, verify the connectivity to Active Directory by using the Nltest command-line tool. Nltest.exe is included in the Remote Server Administration Tools for Windows 10.
At a command prompt, type the following command, and then press Enter:
Nltest /dsgetdc:<FQDN Of Domain>. If the settings are correct, you receive output that resembles the following:
DC: \DC.contoso.com Address:\ <IP Address> Dom Guid: <GUID> Dom Name: contoso.com Forest Name: contoso.com Dc Site Name: Default-First-Site-Name Our Site Name: Default-First-Site-Name Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_DC DNS_DOMAIN DNS_FOREST CLOSE_SITE The command completed successfully
Check the computer's site membership. To do this, type the following command, and then press Enter:
nltest /dsgetsite. A successful result resembles the following:
Default-First-Site-Name The command completed successfully
Accessing Office 365 resources by using a non-federated account or a federated account from a public Internet connection may not result in a single sign-on experience.
The experience for logging on to Microsoft Outlook connections is also not expected to be a single sign-on experience.
Contact us for help
Submit and view feedback for