Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ClaimsPrincipalHttpModule Members

Windows Identity Foundation
[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

This HttpModule converts the HttpContext.Current.User to an IClaimsPrincipal. It can be used to ensure that the security principal and the associated Identity used for ASP.Net applications (e.g. Page.User or Thread.CurrentPrincipal) are claims-based. It makes use of the CreateFromPrincipal(IPrincipal) method. The conversion takes place in response to the PostAuthenticateRequest event.

The following tables list the members exposed by the ClaimsPrincipalHttpModule type.

 ClaimsPrincipalHttpModuleInitializes a new instance of the ClaimsPrincipalHttpModule class.

public propertyAuthenticationManagerGets/Sets the ClaimsAuthenticationManager
public propertyClientCertificateAuthenticationEnabledA value that indicates whether the client certificate (if present) in the HttpRequest must be authenticated.

(see also Protected Methods)
public methodDisposeDisposes of the resources (other than memory) used by the module that implements System.Web.IHttpModule.
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodInitInitializes the module by registering an event handler for the PostAuthenticateRequest event.
public methodToString  (Inherited from Object)

protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
protected methodOnPostAuthenticateRequestEvent handler for Application.PostAuthenticateRequest

Copyright © 2008 by Microsoft Corporation. All rights reserved.

Community Additions

© 2015 Microsoft