I am looking for the best security model to implement access rights on a website. Objects access should be granted based on the following rules initially:

  • User
  • User Group
  • Hierarchy
  • Permissions (CRUD)

What are the security models I can use and what are the advantages and disadvantages of each one?

Thank you!

有帮助吗?

解决方案

Access control models are sometimes categorized as either discretionary or non-discretionary. The three most widely recognized models are Discretionary Access Control (DAC), Mandatory Access Control (MAC), and Role Based Access Control (RBAC). MAC and RBAC are both non-discretionary.

But I suggest to use RBAC model. It's so useful for your problem.

其他提示

RBAC is usually pretty easy to implement and straight forward. However I would be surprised if an existing access control library didn't exist for your platform.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top