خرید بک لینک

Vote count: 0

I'm working on Spring MVC project that uses @PreAuthorize to handle method security. One controller grants access to two different types of users. However, based on another argument the user can be considered unauthorised. For example

  • If the api client passes usertypeA and businessType1 the controller not retu 403
  • If the api client passes usertypeB and businessType1 the controller retu 403

Is there a way in spring to do this without mixing the scurity code and the business logic for this controller?

asked 40 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 28 ارديبهشت 1395 ساعت: 7:39

صفحه بندی