Sdílet prostřednictvím


IAuthorizationMiddlewareResultHandler.HandleAsync Metoda

Definice

Vyhodnotí požadavek na autorizaci a zpracuje výsledek autorizace.

public:
 System::Threading::Tasks::Task ^ HandleAsync(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy, Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ authorizeResult);
public System.Threading.Tasks.Task HandleAsync (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult authorizeResult);
abstract member HandleAsync : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authorization.AuthorizationPolicy * Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult -> System.Threading.Tasks.Task
Public Function HandleAsync (next As RequestDelegate, context As HttpContext, policy As AuthorizationPolicy, authorizeResult As PolicyAuthorizationResult) As Task

Parametry

next
RequestDelegate

Další middleware v kanálu aplikace. Implementace to nemusí vyvolat, pokud autorizace nebyla úspěšná.

context
HttpContext

Hodnota HttpContext

policy
AuthorizationPolicy

Pro AuthorizationPolicy prostředek.

authorizeResult
PolicyAuthorizationResult

Výsledek autorizace.

Návraty

Platí pro