大网数据广告活动
域与目录服务

Troubleshoot AD FS IdP-Initiated Sign-In

· 52CE 我爱测

Learn how to use the sign-in page to troubleshoot Active Directory Federation Services (AD FS) authentication.

You can use the Active Directory Federation Services (AD FS) sign-in page to check if authentication is working. To do this test, you go to the page and sign in. Also, you can use the sign-in page to verify that all SAML 2.0 relying parties are listed.

Enable the IdP-initiated sign-in page

By default, AD FS in Windows 2016 doesn't have the sign-in page enabled. To enable the page, use the PowerShell command Set-AdfsProperties. Use the following procedure to enable the page:

  1. Open Windows PowerShell.

  2. Enter Get-AdfsProperties.

  3. Verify that the EnableIdpInitiatedSignonPage property is set to False.

    :::image type="content" source="media/ad-fs-tshoot-initiatedsignon/idp2.png" alt-text="Screenshot that shows PowerShell output highlighting that the EnableIdpInitiatedSignonPage property is set to false.":::

  4. In PowerShell, enter Set-AdfsProperties -EnableIdpInitiatedSignonPage $true.

  5. PowerShell doesn't provide a confirmation for the Set-AdfsProperties command. To confirm that the EnableIdpInitatedSignonPage property is set to True, enter the Get-AdfsProperties command again and check the value for the property.

    :::image type="content" source="media/ad-fs-tshoot-initiatedsignon/idp4.png" alt-text="Screenshot that shows PowerShell output highlighting that the EnableIdpInitiatedSignonPage property is set to True.":::

Test authentication

Use the following procedure to test AD FS authentication with the Identity Provider (IdP)-initiated sign-in page.

  1. Open a web browser, and go to the IdP sign-in page. Your URL might look like https://sts.contoso.com/adfs/ls/idpinitiatedsignon.aspx.

  2. You're prompted to sign in. Enter your credentials.

    :::image type="content" source="media/ad-fs-tshoot-initiatedsignon/idp5.png" alt-text="Screenshot that shows the sign-in page and the dialog that prompts for credentials.":::

If the process succeeds, you're signed in.

Test authentication with seamless sign-in

You can test the seamless sign-in experience by making sure that the URL for your AD FS servers is added to the local intranet zone of your internet options. Use the following procedure:

  1. On a Windows 10 client, select Start, enter internet options, and select Internet Options.

  2. Select the Security tab, and then select Local intranet > Sites.

    :::image type="content" source="media/ad-fs-tshoot-initiatedsignon/idp8.png" alt-text="Screenshot that shows the Security tab of the Internet Properties dialog that shows the Local intranet option highlighted.":::

  3. Select Advanced.

  4. Enter your URL, and then select Add > Close.

    Screenshot that shows the local intranet popup box requesting the URL to be added for authentication.

  5. Select OK. Then select OK to close the internet options.

  6. Open a web browser and go to the IdP sign-in page. Your URL might look like https://sts.contoso.com/adfs/ls/idpinitiatedsignon.aspx.

  7. Select Sign in. You should automatically sign in and not be prompted for credentials.

    :::image type="content" source="media/ad-fs-tshoot-initiatedsignon/idp6.png" alt-text="Screenshot that shows the sign-in page showing that the user wasn't prompted for credentials.":::

Known issues

The AD FS sign-in page can't be used to initiate a sign-in with a claims provider trust that's configured with a WS-Federation passive endpoint only.

Related content

Source: Microsoft Learn / Windows Server documentation 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.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 05/19/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。