IAuthenticationService.ForbidAsync(HttpContext, String, AuthenticationProperties) IAuthenticationService.ForbidAsync(HttpContext, String, AuthenticationProperties) IAuthenticationService.ForbidAsync(HttpContext, String, AuthenticationProperties) IAuthenticationService.ForbidAsync(HttpContext, String, AuthenticationProperties) Method

Definition

Forbids the specified authentication scheme.

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);
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

Parameters

scheme
String String String String

The name of the authentication scheme.

Returns

A task.

Applies to