CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

CslaAuthentication not returning isAuthenticated

rated by 0 users
Not Answered This post has 0 verified answers | 4 Replies | 2 Followers

Top 150 Contributor
54 Posts
nhwilly posted on Mon, Jun 11 2012 1:46 PM

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...

Bill

This is from the WcfAppServer web.config:

<appSettings>

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

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

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

</appSettings>

And this is from the Mvc3UI web.config:

<appSettings>

<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"/>

</appSettings>

Huh? What? Huh?

All Replies

Top 150 Contributor
54 Posts

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

Huh? What? Huh?

Top 150 Contributor
54 Posts

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.

 

Huh? What? Huh?

Top 10 Contributor
9,281 Posts

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.

Rocky

Top 150 Contributor
54 Posts

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...

Huh? What? Huh?

Page 1 of 1 (5 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems