Share via


AuthenticationSchemeProvider.GetDefaultAuthenticateSchemeAsync Method

Definition

Returns the scheme that will be used by default for AuthenticateAsync(HttpContext, String). This is typically specified via DefaultAuthenticateScheme. Otherwise, this will fallback to DefaultScheme.

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

Returns

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

Implements

Applies to