AuthenticationSchemeProvider.GetDefaultForbidSchemeAsync 方法

定义

返回默认情况下将用于 的方案 ForbidAsync(HttpContext, String, AuthenticationProperties)。 这通常通过 DefaultForbidScheme指定。 否则,这将回退到 GetDefaultChallengeSchemeAsync()

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

返回

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

实现

适用于