Name
PassportAuthenticationEventArgs
Synopsis
This class is a custom System.EventArgs
object that is used
in the event handler for the PassportAuthenticationModule.Authenticate
event. It provides three properties: Context
,
which provides a reference to the current System.Web.HttpContext
; User
,
which will be a null reference (Nothing
); and Identity
,
which will contain the information received from Passport as a PassportIdentity
object.
You can implement a custom authentication scheme and set the User
value programmatically to the appropriate user identity. If you do not set it to
a non-null value, the PassportAuthenticationModule
will create
a System.Security.Principal.WindowsPrincipal
object based on
the information supplied in the PassportIdentity
object and assign it to
the System.Web.HttpContext.User
property.
Public NotInheritable Class PassportAuthenticationEventArgs : Inherits EventArgs ' Public Constructors Public Sub New(ByVal identity As PassportIdentity, ByVal context As System.Web.HttpContext) ' Public Instance Properties Public ReadOnly Property Context As HttpContext Public ReadOnly Property Identity As PassportIdentity Public Property User As IPrincipal End Class
Hierarchy
System.Object→System.EventArgs→ PassportAuthenticationEventArgs
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.