This is a question that i always come with. For example, This is an interface as this:
This interface is exposed as a remote Web Service-RPC function for third-party to use.Code:public interface IFoo{ IBar getBar(int id); }
But The Bar object is context sensitive. In other words, User A can only view Bar1 ,UserB can only view Bar2. So my question is : The service have no idea who sends the request. if the User B calls the interface with argument "1", The User B may get Bar1 easily. To avoid this problem, i have to add an identity argument in the remote interface. But it looks like so clumsy.
How about your smart guys opinion? I would appreciate you help. thx!


Reply With Quote