Click here to Skip to main content
15,891,762 members
Articles / Active Directory
Tip/Trick

Show ADFS Login Page Instead of Windows Authentication Pop Up

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
23 Mar 2015CPOL1 min read 18.2K   7  
This tip explains how to display forms authentication login page when using Active directory login instead of the general Windows authentication login pop up.

Introduction

I recently set up an ADFS website on a server and required the site to display the forms authentication page asking for log in credentials whenever the AD was accessed. But every time, I ended up getting the Windows authentication pop up instead of the pop up.

Image 1

Display Forms Authentication Login Page

After doing some research online, I found that the ADFS website always tries to use Windows authentication before trying to use the forms authentication. If forms authentication is used, the log in page is shown.

To make the Forms authentication log in page show up instead of the pop up, follow the below steps:

  1. Open the physical path of the adfs/ls site. You can do this from IIS manager. Expand the site –> Right-click –> Explore.
  2. Open the web.config file and locate the <localAuthenticationTypes> tag. This section lists the order in which authentication takes place.
  3. Comment out all the items except Forms authentication. Alternatively, you can move the “Forms” key to the first of the list. This will make the site to use Forms authentication before Windows authentication.

    Image 2

  4. Save the web.config file. Try opening the site and the login page should show up as expected.

Hope this helps!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --