Udostępnij przez


AuthenticationSchemeProvider.GetDefaultForbidSchemeAsync Metoda

Definicja

Zwraca schemat, który będzie używany domyślnie dla elementu ForbidAsync(HttpContext, String, AuthenticationProperties). Zazwyczaj jest to określane za pomocą polecenia DefaultForbidScheme. W przeciwnym razie nastąpi powrót do elementu 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)

Zwraca

Schemat, który będzie używany domyślnie dla programu ForbidAsync(HttpContext, String, AuthenticationProperties).

Implementuje

Dotyczy