RemoteAuthenticationHandler<TOptions>.HandleForbiddenAsync 方法

定义

重载

HandleForbiddenAsync(ChallengeContext)
HandleForbiddenAsync(AuthenticationProperties)

重写此方法以处理 For禁止。

HandleForbiddenAsync(ChallengeContext)

protected:
 override System::Threading::Tasks::Task<bool> ^ HandleForbiddenAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
protected override System.Threading.Tasks.Task<bool> HandleForbiddenAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
Protected Overrides Function HandleForbiddenAsync (context As ChallengeContext) As Task(Of Boolean)

参数

返回

适用于

HandleForbiddenAsync(AuthenticationProperties)

Source:
RemoteAuthenticationHandler.cs
Source:
RemoteAuthenticationHandler.cs

重写此方法以处理 For禁止。

protected:
 override System::Threading::Tasks::Task ^ HandleForbiddenAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected override System.Threading.Tasks.Task HandleForbiddenAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overrides Function HandleForbiddenAsync (properties As AuthenticationProperties) As Task

参数

返回

任务。

适用于