AuthenticationOptions.RequireAuthenticatedSignIn 属性

定义

如果为 true,则如果用户未通过身份验证,则 SignIn 应引发。 如果 IsAuthenticated 返回 true 与 HTTP 请求关联的 , ClaimsPrincipal 则用户被视为已经过身份验证。

public:
 property bool RequireAuthenticatedSignIn { bool get(); void set(bool value); };
public bool RequireAuthenticatedSignIn { get; set; }
member this.RequireAuthenticatedSignIn : bool with get, set
Public Property RequireAuthenticatedSignIn As Boolean

属性值

适用于