IClaimsTransformation.TransformAsync(ClaimsPrincipal) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.