You are developing a web application with various user roles, each with different access levels to the application’s resources. How would you design the authorization system to ensure proper access control, scalability, and maintainability?

  • Use a single "admin" role for all users
  • Implement access control checks within route handlers
  • Use a role-based access control (RBAC) system
  • Give every user full access to all resources
To ensure proper access control, scalability, and maintainability in a web application with multiple user roles, you should use a role-based access control (RBAC) system. RBAC allows for fine-grained control over user permissions and is scalable as your application grows. The other options are not recommended, as they lack proper access control or are not scalable.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *