Sdílet prostřednictvím


AuthenticationSchemeProvider.GetDefaultChallengeSchemeAsync Metoda

Definice

Vrátí schéma, které se použije ve výchozím nastavení pro ChallengeAsync(HttpContext, String, AuthenticationProperties). Obvykle se zadává přes DefaultChallengeScheme. V opačném případě se vrátí zpět na DefaultScheme.

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

Návraty

Schéma, které se použije ve výchozím nastavení pro ChallengeAsync(HttpContext, String, AuthenticationProperties).

Implementuje

Platí pro