ClaimsTransformationAppBuilderExtensions Class

Extension methods to add claims transformation capabilities to an HTTP application pipeline.

Namespace
Microsoft.AspNetCore.Builder
Assemblies
  • Microsoft.AspNetCore.Authentication

Syntax

public class ClaimsTransformationAppBuilderExtensions
class Microsoft.AspNetCore.Builder.ClaimsTransformationAppBuilderExtensions

Methods

UseClaimsTransformation(Microsoft.AspNetCore.Builder.IApplicationBuilder)

Adds the Microsoft.AspNetCore.Authentication.ClaimsTransformationMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables claims transformation capabilities.

Arguments:app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilder to add the middleware to.
Return type:Microsoft.AspNetCore.Builder.IApplicationBuilder
Returns:A reference to this instance after the operation has completed.
public static IApplicationBuilder UseClaimsTransformation(this IApplicationBuilder app)
UseClaimsTransformation(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.ClaimsTransformationOptions)

Adds the Microsoft.AspNetCore.Authentication.ClaimsTransformationMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables claims transformation capabilities.

Arguments:
Return type:

Microsoft.AspNetCore.Builder.IApplicationBuilder

Returns:

A reference to this instance after the operation has completed.

public static IApplicationBuilder UseClaimsTransformation(this IApplicationBuilder app, ClaimsTransformationOptions options)
UseClaimsTransformation(Microsoft.AspNetCore.Builder.IApplicationBuilder, System.Func<Microsoft.AspNetCore.Authentication.ClaimsTransformationContext, System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>>)

Adds the Microsoft.AspNetCore.Authentication.ClaimsTransformationMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables claims transformation capabilities.

Arguments:
Return type:

Microsoft.AspNetCore.Builder.IApplicationBuilder

Returns:

A reference to this instance after the operation has completed.

public static IApplicationBuilder UseClaimsTransformation(this IApplicationBuilder app, Func<ClaimsTransformationContext, Task<ClaimsPrincipal>> transform)