Partilhar via


AuthenticationSchemeProvider.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:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationScheme ^> ^ GetDefaultForbidSchemeAsync();
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme> GetDefaultForbidSchemeAsync ();
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme?> GetDefaultForbidSchemeAsync ();
abstract member GetDefaultForbidSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
override this.GetDefaultForbidSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
Public Overridable Function GetDefaultForbidSchemeAsync () As Task(Of AuthenticationScheme)

Retornos

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

Implementações

Aplica-se a