AuthenticationSchemeOptions.ForwardDefaultSelector 属性

定义

用于为身份验证处理程序默认将所有身份验证操作转发到的当前请求选择默认方案。 默认转发逻辑将首先检查最具体的 ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut 设置,然后检查 ForwardDefaultSelector,然后检查 ForwardDefault。 第一个非 null 结果将用作要转发到的目标方案。

public:
 property Func<Microsoft::AspNetCore::Http::HttpContext ^, System::String ^> ^ ForwardDefaultSelector { Func<Microsoft::AspNetCore::Http::HttpContext ^, System::String ^> ^ get(); void set(Func<Microsoft::AspNetCore::Http::HttpContext ^, System::String ^> ^ value); };
public Func<Microsoft.AspNetCore.Http.HttpContext,string> ForwardDefaultSelector { get; set; }
public Func<Microsoft.AspNetCore.Http.HttpContext,string>? ForwardDefaultSelector { get; set; }
public Func<Microsoft.AspNetCore.Http.HttpContext,string?>? ForwardDefaultSelector { get; set; }
member this.ForwardDefaultSelector : Func<Microsoft.AspNetCore.Http.HttpContext, string> with get, set
Public Property ForwardDefaultSelector As Func(Of HttpContext, String)

属性值

适用于