AuthenticationHttpContextExtensions.ForbidAsync AuthenticationHttpContextExtensions.ForbidAsync AuthenticationHttpContextExtensions.ForbidAsync AuthenticationHttpContextExtensions.ForbidAsync Method

Definition

Overloads

ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String)

Extension method for Forbid.

ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties)

Extension method for Forbid.

ForbidAsync(HttpContext) ForbidAsync(HttpContext) ForbidAsync(HttpContext) ForbidAsync(HttpContext)

Extension method for Forbid using the DefaultForbidScheme scheme..

ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties)

Extension method for Forbid.

ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String)

Extension method for Forbid.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme);
public static System.Threading.Tasks.Task ForbidAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme);
static member ForbidAsync : Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task
<Extension()>
Public Function ForbidAsync (context As HttpContext, scheme As String) As Task

Parameters

scheme
String String String String

The name of the authentication scheme.

Returns

The task.

ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties)

Extension method for Forbid.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task ForbidAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
static member ForbidAsync : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
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

The task.

ForbidAsync(HttpContext) ForbidAsync(HttpContext) ForbidAsync(HttpContext) ForbidAsync(HttpContext)

Extension method for Forbid using the DefaultForbidScheme scheme..

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static System.Threading.Tasks.Task ForbidAsync (this Microsoft.AspNetCore.Http.HttpContext context);
static member ForbidAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
<Extension()>
Public Function ForbidAsync (context As HttpContext) As Task

Parameters

Returns

The task.

ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties)

Extension method for Forbid.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task ForbidAsync (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
static member ForbidAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function ForbidAsync (context As HttpContext, properties As AuthenticationProperties) As Task

Parameters

Returns

The task.

Applies to