Partilhar via


IAuthenticationSchemeProvider.GetDefaultForbidSchemeAsync Método

Definição

Retorna o esquema que será usado por padrão para ForbidAsync(HttpContext, String, AuthenticationProperties). Normalmente, isso é especificado por meio de DefaultForbidScheme. Caso contrário, isso fará fallback para 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)

Retornos

O esquema que será usado por padrão para ForbidAsync(HttpContext, String, AuthenticationProperties).

Aplica-se a