Share via


IAuthenticationService.ForbidAsync Método

Definición

Prohíbe el esquema de autenticación especificado. La prohibición se usa cuando un usuario autenticado intenta acceder a un recurso al que no se le permite acceder.

public:
 System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Http.HttpContext context, string? scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
abstract member ForbidAsync : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function ForbidAsync (context As HttpContext, scheme As String, properties As AuthenticationProperties) As Task

Parámetros

scheme
String

Nombre del esquema de autenticación.

Devoluciones

Una tarea.

Se aplica a