Share via


AuthenticationSchemeProvider.GetDefaultChallengeSchemeAsync Method

Definition

Returns the scheme that will be used by default for ChallengeAsync(HttpContext, String, AuthenticationProperties). This is typically specified via DefaultChallengeScheme. Otherwise, this will fallback to 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)

Returns

The scheme that will be used by default for ChallengeAsync(HttpContext, String, AuthenticationProperties).

Implements

Applies to