AuthenticationOptions.RequireAuthenticatedSignIn 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果为 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