AuthenticationSchemeProvider.GetDefaultChallengeSchemeAsync 方法

定义

返回默认情况下将用于 的方案 ChallengeAsync(HttpContext, String, AuthenticationProperties)。 这通常通过 DefaultChallengeScheme指定。 否则,这将回退到 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)

返回

默认情况下将用于 的方案 ChallengeAsync(HttpContext, String, AuthenticationProperties)

实现

适用于