User.Identity.IsAuthenticated与OWIN cookie身份验证随机为FALSE

时间:2015-08-05 01:04:59

标签: asp.net-mvc azure asp.net-web-api active-directory owin

我有一个ASP .NET MVC 5应用程序,它也有Web API组件,但我不认为它们是一个因素。

我的问题是随机登录后,User.Identity.IsAuthenticated(和Request.IsAuthenticated)为FALSE。

我没有得到任何回调我的AuthenticationFailed回调,其他一切似乎都正常。

我应该使用哪些之间有什么区别:

Request.IsAuthenticated
User.Identity.IsAuthenticated
System.Web.HttpContext.Current.Request.IsAuthenticated

0 个答案:

没有答案