Compartir a través de


IAuthenticationSchemeProvider.GetDefaultForbidSchemeAsync Método

Definición

Devuelve el esquema que se usará de forma predeterminada para ForbidAsync(HttpContext, String, AuthenticationProperties). Normalmente, esto se especifica a través de DefaultForbidScheme. De lo contrario, se revertirá a GetDefaultChallengeSchemeAsync() .

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationScheme ^> ^ GetDefaultForbidSchemeAsync();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme> GetDefaultForbidSchemeAsync ();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme?> GetDefaultForbidSchemeAsync ();
abstract member GetDefaultForbidSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
Public Function GetDefaultForbidSchemeAsync () As Task(Of AuthenticationScheme)

Devoluciones

Esquema que se usará de forma predeterminada para ForbidAsync(HttpContext, String, AuthenticationProperties).

Se aplica a