Share via


ClaimsTransformationAppBuilderExtensions.UseClaimsTransformation Method

Definition

Overloads

UseClaimsTransformation(IApplicationBuilder)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

UseClaimsTransformation(IApplicationBuilder)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseClaimsTransformation(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseClaimsTransformation (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseClaimsTransformation : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseClaimsTransformation (app As IApplicationBuilder) As IApplicationBuilder

Parameters

app
IApplicationBuilder

The IApplicationBuilder to add the middleware to.

Returns

A reference to this instance after the operation has completed.

Applies to

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseClaimsTransformation(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::ClaimsTransformationOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseClaimsTransformation (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.ClaimsTransformationOptions options);
static member UseClaimsTransformation : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.ClaimsTransformationOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseClaimsTransformation (app As IApplicationBuilder, options As ClaimsTransformationOptions) As IApplicationBuilder

Parameters

app
IApplicationBuilder

The IApplicationBuilder to add the middleware to.

options
ClaimsTransformationOptions

The ClaimsTransformationOptions to configure the middleware with.

Returns

A reference to this instance after the operation has completed.

Applies to

UseClaimsTransformation(IApplicationBuilder, Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>)

Adds the ClaimsTransformationMiddleware middleware to the specified IApplicationBuilder, which enables claims transformation capabilities.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseClaimsTransformation(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Func<Microsoft::AspNetCore::Authentication::ClaimsTransformationContext ^, System::Threading::Tasks::Task<System::Security::Claims::ClaimsPrincipal ^> ^> ^ transform);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseClaimsTransformation (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Func<Microsoft.AspNetCore.Authentication.ClaimsTransformationContext,System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>> transform);
static member UseClaimsTransformation : Microsoft.AspNetCore.Builder.IApplicationBuilder * Func<Microsoft.AspNetCore.Authentication.ClaimsTransformationContext, System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseClaimsTransformation (app As IApplicationBuilder, transform As Func(Of ClaimsTransformationContext, Task(Of ClaimsPrincipal))) As IApplicationBuilder

Parameters

app
IApplicationBuilder

The IApplicationBuilder to add the middleware to.

transform
Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>

A function that asynchronously transforms one ClaimsPrincipal to another.

Returns

A reference to this instance after the operation has completed.

Applies to