I trying to add custom properties to the ApplicationUser for a web site using MVC5 and OWIN authentication. I\'ve read https://stackoverflow.com/a/10524305/264607 and I like ho
I bet HttpContext.Current.User is null. So instead of this:
if (HttpContext.Current.User.Identity.IsAuthenticated)
you can try this:
if (HttpContext.Current.Request.IsAuthenticated)