Make a Method of the Business Layer secure. best practice / best pattern

后端 未结 3 1918
-上瘾入骨i
-上瘾入骨i 2021-02-06 02:55

We are using ASP.NET with a lot of AJAX \"Page Method\" calls. The WebServices defined in the Page invokes methods from our BusinessLayer. To prevent hackers to call the Page M

3条回答
  •  耶瑟儿~
    2021-02-06 03:45

    If you are using SOA, you can create a Security Service, and each action (method) will send it's context (UserId, OrderId etc.). Security Service knows about business security rules.

    Scheme may be something like this

    UI -> Security -> BLL -> DAL
    

提交回复
热议问题