Click here to Skip to main content
15,888,908 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi ,
I have a classic asp intranet application. I need windows pop up authentication for that intranet site.If I change the setting in IE-->tools-->internet options-->security-->custom level-->user authentication-->"Prompt for username and password", I am getting windows authentication pop up.But my requirement is with out changing the setting manually,I have to get authentication pop up when an application url is given.Please help me.
A quick response is highly appreciated.
Thanks in advance...
Posted

1 solution

1.Because you are using intranet application you first option should use Windows Authentication.
To enable Windows Authentication within an ASP.NET Application, you should make sure that you have “Integrated Windows Authentication” enabled within IIS for the application you are building.
Then you should add/modify the next settings in your web.config file:
XML
<configuration>

    <system.web>

        <authentication mode="Windows" />

         <authorization>
             <deny users="?"/>
          </authorization>

    </system.web>

</configuration>


2.Second solution could be to implement Forms authentication, like for an internet application.
In this case you can start from the next: http://msdn.microsoft.com/en-us/library/vstudio/7t6b43z4(v=vs.100).aspx[^]
 
Share this answer
 
v2
Comments
Member 10812265 22-May-14 9:28am    
Hi Raul,
Many thanks for your reply.Can you put some light on solution 2 please.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900