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 specifiedMicrosoft.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 specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder
, which enables claims transformation capabilities.Arguments: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilder
to add the middleware to. - options (Microsoft.AspNetCore.Builder.ClaimsTransformationOptions) – The
Microsoft.AspNetCore.Builder.ClaimsTransformationOptions
to configure the middleware with.
Return type: Returns: A reference to this instance after the operation has completed.
public static IApplicationBuilder UseClaimsTransformation(this IApplicationBuilder app, ClaimsTransformationOptions options)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-
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 specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder
, which enables claims transformation capabilities.Arguments: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilder
to add the middleware to. - transform (System.Func<Microsoft.AspNetCore.Authentication.ClaimsTransformationContext<System.Security.Claims.ClaimsPrincipal>>) – A function that asynchronously transforms one
System.Security.Claims.ClaimsPrincipal
to another.
Return type: Returns: A reference to this instance after the operation has completed.
public static IApplicationBuilder UseClaimsTransformation(this IApplicationBuilder app, Func<ClaimsTransformationContext, Task<ClaimsPrincipal>> transform)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-