AuthenticationSchemeOptions.ForwardForbid 屬性

定義

如果設定,這會指定此配置應該轉送 ForbidAsync 呼叫的目標配置。 例如 CoNtext.ForbidAsync (「ThisScheme」) = > CoNtext.ForbidAsync (「ForwardForbidValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。

C#
public string ForwardForbid { get; set; }
C#
public string? ForwardForbid { get; set; }

屬性值

適用於

產品 版本
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0