This module, when loaded through the web.config
file (<authentication mode="Passport">),
provides authentication using Microsoft's Passport
service. In this model, the ASP.NET framework will check for the
Passport "ticket" (an encrypted
value in a cookie or the query string) and use it to authenticate the
user. If no ticket is present, or if it has expired, the user will be
redirected to the Passport service's login page. The
user will be redirected automatically to the original ASP.NET page
with the correct ticket after logging in. At this point, the
Authenticate event will be fired. You can handle
this event with an event handler named
PassportAuthentication_OnAuthenticate in the
global.asax file.
The location of the Passport login page is set using the
<passport redirectUrl> element in the
web.config file.
public sealed class PassportAuthenticationModule : System.Web.IHttpModule {
// Public Constructors
public PassportAuthenticationModule( );
// Public Instance Methods
public void Dispose( ); // implements System.Web.IHttpModule
public void Init(System.Web.HttpApplication app); // implements System.Web.IHttpModule
// Events
public event PassportAuthenticationEventHandler Authenticate;
}