uploads/946/PivotWithLoginManager.zip
Hi,
I have made a little sample project where I try to get the logged in user thru the HttpContext – but it is empty .
I read the documentation from Ideablade on this issue, but I am missing something. Can someone look at the sample and help me?
1. The sample application takes a username and password. These are passed into the LoginAsync method of the entitymanager. (MainPage.xaml.cs)
2. These are then transferred to the Login method of a loginmanager that implements the IEntityLoginManager. (LoginManager.cs)
3. The loginmanager validates the username and password against a database.
4. When this process is done and successful, the user can load a collection to the pivotviewer. (ViewImageLibrary.xaml.cs)
5. When doing this a http request is sent to the server where some httphelpers handle the request. (CxmlHandler.ProcessRequest in HttpHandlers.cs)
6. The problem here is that the HttpContext.User is empty.
7. Then the collection is created and sent back to the PivotViewer. (RNImageCollection.cs)
In my webconfig I have set these settings:
....
<serverSettings loginManagerRequired="true" />
....
<serverSettings useAspNetSecurityServices="true" />
....
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
....
<authentication mode="Forms" />
....
Edited by danjal - 15-Apr-2011 at 4:22am