Bagikan melalui


ClaimsTransformationAppBuilderExtensions.UseClaimsTransformation Metode

Definisi

Overload

UseClaimsTransformation(IApplicationBuilder)

ClaimsTransformationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan transformasi klaim.

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

ClaimsTransformationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan transformasi klaim.

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

ClaimsTransformationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan transformasi klaim.

UseClaimsTransformation(IApplicationBuilder)

ClaimsTransformationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan transformasi klaim.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan middleware.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

ClaimsTransformationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan transformasi klaim.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan middleware.

options
ClaimsTransformationOptions

ClaimsTransformationOptions untuk mengonfigurasi middleware dengan.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk

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

ClaimsTransformationMiddleware Menambahkan middleware ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan transformasi klaim.

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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan middleware.

transform
Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>

Fungsi yang secara asinkron mengubah satu ClaimsPrincipal sama lain.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk