Sdílet prostřednictvím


ClaimsTransformationAppBuilderExtensions.UseClaimsTransformation Metoda

Definice

Přetížení

UseClaimsTransformation(IApplicationBuilder)

ClaimsTransformationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje transformace deklarací identity.

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

ClaimsTransformationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje transformace deklarací identity.

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

ClaimsTransformationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje transformace deklarací identity.

UseClaimsTransformation(IApplicationBuilder)

ClaimsTransformationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje transformace deklarací identity.

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

Parametry

app
IApplicationBuilder

K IApplicationBuilder přidání middlewaru.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro

UseClaimsTransformation(IApplicationBuilder, ClaimsTransformationOptions)

ClaimsTransformationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje transformace deklarací identity.

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

Parametry

app
IApplicationBuilder

K IApplicationBuilder přidání middlewaru.

options
ClaimsTransformationOptions

Pro ClaimsTransformationOptions konfiguraci middlewaru.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro

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

ClaimsTransformationMiddleware Přidá middleware do zadaného IApplicationBuilderobjektu , který umožňuje transformace deklarací identity.

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

Parametry

app
IApplicationBuilder

K IApplicationBuilder přidání middlewaru.

transform
Func<ClaimsTransformationContext,Task<ClaimsPrincipal>>

Funkce, která asynchronně transformuje jednu ClaimsPrincipal na druhou.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro