CslaAuthentication not returning isAuthenticated

CslaAuthentication not returning isAuthenticated

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

nhwilly posted on Monday, June 11, 2012

I am trying to run the ProjectTracker solution.  Just trying to get the MVC3UI up and working so I can understand what's happening inside the framework.

The problem I am having is that the Applicaton_AuthenticateRequest always sees the IsAuthenticated property as false.  I've traced all the code and the principal has the value and everything looks great until it routes back to the Index and somehow the Csla.ApplicationContext.User.Identity.IsAuthenticated is false.

I am certain this is a configuration issue, but I can't find it.  Since the principal is found in the ASP database and is being populated, this just somehow isn't getting back to the web page.

Any ideas would be great.  Thanks in advance...


This is from the WcfAppServer web.config:


<add key="CslaAuthentication" value="Csla"/>

<!--<add key="DalManagerType" value="ProjectTracker.DalMock.DalManager,ProjectTracker.DalMock"/>-->

<add key="DalManagerType" value="ProjectTracker.DalEf.DalManager,ProjectTracker.DalEf"/>


And this is from the Mvc3UI web.config:


<add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>

<add key="CslaDataPortalUrl" value="http://localhost:22627/WcfPortal.svc"/>

<add key="ClientValidationEnabled" value="true"/>

<add key="UnobtrusiveJavaScriptEnabled" value="true"/>

<add key="CslaAuthentication" value="Csla"/>


nhwilly replied on Monday, June 11, 2012

Ok, hold up on this.  It seems to be working with VS2010...

nhwilly replied on Monday, June 11, 2012

Not sure what I managed to break just trying to run the code the first time.

Now it seems to be working OK with VS2012RC, so I have no idea what I did.  Sorry guys.


Delete these posts if you want.  I just wasn't sure if they were being monitored or something.


RockfordLhotka replied on Monday, June 11, 2012

Most of the samples are NOT tested with VS12 yet.

In fact, the only thing I know for sure that's been actively used in VS12 is the WinRT UI for ProjectTracker, because that's what I've been working on.

We'll get to the other samples (including other parts of ProjectTracker), but just haven't had time yet.

nhwilly replied on Tuesday, June 12, 2012

The problem is definitely me as I am trying to understand ProjectTracker and all the implications of things.  I must have broken something, but for the life of me I couldn't find it.

I simply went back to the zip file and pull the project out again and just ran it under VS2012RC.  I had to unload the WP7 project, but after that it just worked.

Not sure what I did to break it. 

No worries about catching up at least not for me.

Appreciate what you've done already...

Copyright (c) Marimer LLC