MVC4 - Csla.ApplicationContext.User.IsAuthenticated = true but HttpContext.User.Identity.IsAuthenticated = false

MVC4 - Csla.ApplicationContext.User.IsAuthenticated = true but HttpContext.User.Identity.IsAuthenticated = false

Old forum URL: forums.lhotka.net/forums/t/11896.aspx


Dane posted on Saturday, March 23, 2013

This has the feel of some type of configuration issue but I'm not seeing it. My MVC AccountController Login method shows the Csla.ApplicaionContext.User is authenticating correctly but authentication is not propagating to the ASP.NET pipe. I'm obviously missing something here.

Dane replied on Saturday, March 23, 2013

I think I've answered my own question. I was missing a reference due to an oversight using nuget.

A couple weeks back I updated my project to utilize nuget instead of relative path references. I'd installed CSLA-MVC4 but failed to install CSLA-ASP so I only have a reference to Csla.Mvc and not Csla.Web in my MVC application. Without a reference to Csla.Web the authentication abstractions were not being propoaged. As soon as I added the ASP package authentication flowed through.

Copyright (c) Marimer LLC