I have a web application written in asp.net mvc with seamless nhibernate.
Data Hierarchy: Message β Category β Company
User Roles: user, admin
I am trying to find an architecture for developing custom authorization. A user can be a member of several companies. Also, the user may be the administrator of the company, while he may simply be a member of another company.
We also want to develop custom authorization based on the controller, action, or action identifier. For example, a user can be an administrator of only one category. Namely, in our future system there will be users, user groups in which users and groups belong to the company. While user authorization will be applied to them based on url (contoller / action / id).
any recommendation, useful links, etc.
source share