共用方式為


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)

實作

適用於