Share via


AuthenticationSchemeProvider.GetDefaultForbidSchemeAsync Méthode

Définition

Retourne le schéma qui sera utilisé par défaut pour ForbidAsync(HttpContext, String, AuthenticationProperties). Cela est généralement spécifié via DefaultForbidScheme. Dans le cas contraire, cette opération sera de secours vers 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)

Retours

Schéma qui sera utilisé par défaut pour ForbidAsync(HttpContext, String, AuthenticationProperties).

Implémente

S’applique à