Asp.net and Windows Authentication

My application should be designed so that the administrator can select through the web interface whether their users will log in through Windows authentication or form authentication.

This means that I cannot specify the authentication mode in the web.config ie file:

<system.web> <authentication mode="Windows"/> </system.web> 

How do I approach this?

+4
source share
2 answers

There is an MSDN article with your exact request here:

http://msdn.microsoft.com/en-us/library/ms972958.aspx

+4
source

Use forms authentication mode, and the login form can determine the user and the preferred authentication method for this user. If the user can be authenticated by Windows, you do not need to submit a login form, just set the user as authenticated and redirected accordingly.

+2
source

All Articles