Share via


CookieValidatePrincipalContext.ReplacePrincipal(ClaimsPrincipal) Method

Definition

Called to replace the claims principal. The supplied principal will replace the value of the Principal property, which determines the identity of the authenticated request.

public:
 void ReplacePrincipal(System::Security::Claims::ClaimsPrincipal ^ principal);
public void ReplacePrincipal (System.Security.Claims.ClaimsPrincipal principal);
member this.ReplacePrincipal : System.Security.Claims.ClaimsPrincipal -> unit
Public Sub ReplacePrincipal (principal As ClaimsPrincipal)

Parameters

principal
ClaimsPrincipal

The ClaimsPrincipal used as the replacement

Applies to