PassportAuthenticationModule

PassportAuthenticationModule

System.Web.Security (system.web.dll)sealed class

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; }


ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net