Share via


IAuthenticationSchemeProvider.GetDefaultSignInSchemeAsync 方法

定义

返回默认情况下将用于 的方案 SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)。 这通常通过 DefaultSignInScheme指定。 否则,这会回退到 DefaultScheme

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

返回

将默认用于 的方案 SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

适用于