IAuthenticationSchemeProvider.GetDefaultForbidSchemeAsync 方法

定义

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

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

返回

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

适用于