authenticated, if not authenticate him, if yes insert his token in every ajax request console.log("Log in failed", err); });在第一次尝试中,isAuthenticated是false (正常行为),因此用户被重定向到auth0登录提示,用户输入他
我正在努力将登录功能添加到我正在构建的站点,但是登录后,Request.IsAuthenticated属性总是返回true。就在RedirectToAction调用之前)写入日志文件,因此我知道它正在调用SetAuthCookie,但是一旦它在随后重定向到我的主页( home /Index)时命中布局代码,Request.IsAuthenticated就不会返回true,所以我总是再次获得"Login“链接。我尝试过的两件事是对表单的web.config进行以下修改: 1)添加"require