共用方式為


IAuthenticationSchemeProvider.GetDefaultChallengeSchemeAsync 方法

定義

傳回預設將用於 ChallengeAsync(HttpContext, String, AuthenticationProperties) 的配置。 這通常會透過 DefaultChallengeScheme 指定。 否則,這會回復為 DefaultScheme

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

傳回

預設會用於 ChallengeAsync(HttpContext, String, AuthenticationProperties) 的配置。

適用於