-
I discuss various alternatives in the 'Expert 2008 Business Objects' book and in the 'Using CSLA 4' ebook series. Because the web server doesn't remember anything between requests, you have to recreate or re-obtain the principal/identity at the start of each page request. In and of...
-
Normal 0 false false false EN-US X-NONE X-NONE Hi, We need some expert advice. Currently our product successfully implements CSLA using Silverlight for the client, but we want to expand our product by implementing other clients. In particular we want to create a Service Layer using the MVC Web API as...
-
I tried that and then changed my mind and tried to do the same as in the code that comes with the data-portal book, so basically I authenticate with the WebAuthenticationBroker and I send the token to the backend so I can get the username using CustomPrincipal.BeginLogin(auth.AuthenticationType, token...
-
Anybody tried to use WInRT's WebAuthenticationBroker for Authentication with CSLA, How would that work? WebAuthenticationBroker runs on the client, and it seems that CSLA like to have it on the server. Any ideas ?
-
Howdy, I have a silverlight application that we implemented custom authentication using a custom IPrincipal and IIdentity. My initial test were between two XP machines running IIS. In these these test the ApplicationContext.User flowed back to the server on DataPortal calls. I have deployed the application...
-
That should be fine, but it does rely on you having set Csla.ApplicationContext.User to some valid value first. Silverlight doesn't have any concept of a user identity, so CSLA includes one that matches the .NET principal/identity concept. But because Silverlight doesn't have this concept, you...
-
.NET stores the user principal/identity at the thread level. So if you set the principal on a background thread it will have no impact on the main UI app thread. Also, WPF works very hard to prevent the principal from being changed, even on the main app thread, so if you are using WPF that will also...
-
Dear Sir, I am trying to use ASP.NET 2.0 in a winform application. Because I don’t need create a membership db and can use existing membership API. Below is my custom code for Principle and Identity, it looks works. if you are free, could you please give a look, I wonder to know whether I am in...
-
Once the User property is set it won't change unless your code changes it. On a web server, the User property value is actually stored in HttpContext, and ASP.NET manages the context object to ensure it is consistent throughout the life of the web request.
-
Hi Can anyone explain me why in BussinessRules class there is no overload static HasPermission method that accept Csla.Core.IMemberInfo parameter? Whenever I want to check permission for a shared(static) method , I am forcing to create an instance of that class and then test the permission. like this...