# Re:0 - Starting Life in Backend - Week1 - RBAC
😅seal
可不可以 和你在一起
我们之间有太多回忆
爱上了你 没什么道理
只是刚好情窦初开遇到你
不希望我的未来不是你
只愿意和你永远不分离
Divided the user system into three parts : User, Role and Auth; User connect to Role, and Role connect to Auth. Use this kind of system to divide user and auth, in order to make sure the safety of the system.
Access control to system resources is achieved by assigning permissions to roles, and then assigning roles to users. A user has several roles, and each role has several permissions.
-
Role: A role is an abstract concept within a system that has a set of associated permissions. It represents a user's identity or function within a specific context, such as administrator or user.
-
Permission: A permission is the permission to perform operations on system resources, such as read, write, and modify. Permissions can be assigned to roles.
-
User: A user is the actual user of the system. Each user can be assigned one or more roles.
-
Assignment: Assignment involves associating a role with a user to grant the user the corresponding permissions.