Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Authentication.​IClaimsTransformation
Assembly: Microsoft.AspNetCore.Authentication.Abstractions
Used by the <see cref="T:Microsoft.AspNetCore.Authentication.IAuthenticationService" /> for claims transformation.
Methods
System.​Threading.​Tasks.​Task<​System.​Security.​Claims.​ClaimsPrincipal>
TransformAsync​(System.​Security.​Claims.​ClaimsPrincipal principal)
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.
Returns The transformed principal.
principal
The <see cref="T:System.Security.Claims.ClaimsPrincipal" /> to transform.