When and how do I use windows authentication in ASP.NET 2.0?

From Guidance Share

Jump to: navigation, search

J.D. Meier, Prashant Bansode, Alex Mackman


Your ASP.NET application should use Windows authentication when your users have Windows accounts that can be authenticated by a server. The accounts can be local Windows accounts or domain accounts.

To use Windows authentication in ASP.NET in conjunction with Integrated Windows authentication in IIS

  • Configure the virtual directory on IIS to disable anonymous access and configure it to use Integrated Windows authentication alone (by default anonymous access is enabled).
  • Configure your application's Web.config for Windows authentication (the default)
<authentication mode="Windows">

More Information

For more information about using windows authentication and features like impersonation provided by windows authentication, see “How To: Use Windows Authentication in ASP.NET 2.0” at http://msdn.microsoft.com/library/en-us/dnpag2/html/PAGHT000025.asp For additional information on how Windows authentication works in ASP.NET, see “Explained: Windows Authentication in ASP.NET 2.0” at http://msdn.microsoft.com/library/en-us/dnpag2/html/PAGExplained0001.asp

Personal tools