Name
WindowsAuthenticationModule
Synopsis
This module, when loaded through the web.config file
(<authentication mode="Windows">), provides Windows/IIS authentication. In
this model, IIS authenticates the user identity for the current web request
using any supported method (including Basic, Digest, or Integrated Windows), and
then passes that account to the ASP.NET application, which it uses to access
the resources it needs. The WindowsAuthenticationModule uses a System.Security.Principal.WindowsIdentity object to hold user
information received from IIS and constructs a System.Security.Principal.WindowsPrincipal object to provide
information about group memberships. The System.Security.Principal.WindowsPrincipal object is attached
to the application context and provided through the System.Web.HttpContext.User property. This module also
provides a single event, Authenticate,
which you can access through the WindowsAuthentication_OnAuthenticate event handler in the
global.asax file.
This type of authentication scheme is particularly useful in corporate intranet scenarios, where IIS can be set to Integrated Windows authentication and all users can access the application under their network accounts.
Public NotInheritable Class WindowsAuthenticationModule : Implements System.Web.IHttpModule ' Public Constructors Public Sub New() ' Public Instance Methods Public Sub Dispose() Implements IHttpModule.Dispose Public Sub Init( ByVal app As System.Web.HttpApplication) Implements IHttpModule.Init ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access