Share via


IClaimsTransformation.TransformAsync(ClaimsPrincipal) Method

Definition

Provides a central transformation point to change the specified principal. Note: this will be run on each AuthenticateAsync call, so its safer to return a new ClaimsPrincipal if your transformation is not idempotent.

public:
 System::Threading::Tasks::Task<System::Security::Claims::ClaimsPrincipal ^> ^ TransformAsync(System::Security::Claims::ClaimsPrincipal ^ principal);
public System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> TransformAsync (System.Security.Claims.ClaimsPrincipal principal);
abstract member TransformAsync : System.Security.Claims.ClaimsPrincipal -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
Public Function TransformAsync (principal As ClaimsPrincipal) As Task(Of ClaimsPrincipal)

Parameters

principal
ClaimsPrincipal

The ClaimsPrincipal to transform.

Returns

The transformed principal.

Applies to