laravel-casbin-admin

A separate rBAC permission management system based on vue-element-admin + Laravel8.x + Casbin integration.

The demo address

introduce

  • The system adopts the front and back end separation architecture, which is an enterprise background solution. The front-end framework is based onvue-element-adminThe backend framework uses the most popular framework in PHPlaravel

The casbin lightweight access control framework is used to control permissions

  • This is your first project to learn about the latest uses of Laravel: routing, middleware, validators, JWT validation, laravel global exception handling, business and service separation, and vue front-end. And how to write the most common background RBAC permission controls
  • The latest backend separation technology used in this project can control permissions down to a single interface
  • This project is not highly encapsulated 📦, but only provides complete RBAC permission control. It is easy to use, easy to use and “free and open source”.
  • Type so many words ~ finally can give me a point star ~ ❤️
  • Demo: Use the weibo scan code to log in

The main function

1. Login

  • 1. JWT + API verification code for common login

  • 2. Third-party login (currently Microblogging (available) pin login code has been provided without testing) default todemopermissions

The “feature” is based on a third-party login package I wrote thirdParty_oauth that is compatible with Laravel-Octane

2. Rights management

3. Role management

  • Assign roles to menu nodes and API nodes

4. User management

  • Assign multiple roles

5. “Terminal” is similar to the pseudo-terminal of pagoda (this function is based on Node), but it is also controlled by the system RBAC permission. Considering security issues, the Node server requests Laravel for authentication (ha ha, there is no need to log in to the service to update the code), but this function needs to expose the port, please use with caution.

In the end the whole project follows simplicity and ease of use. No over-encapsulation, even for the front-end novice “learn from the document” can quickly get started to develop a back-end project with a separate front and back end, friendly to the novice ~ ~ ~ finally welcome star

Problems encountered in use (the above problems are basically the environment and some use problems. There are basically no bugs encountered and any problems will be fixed in time)

  • Provide issues to the project

  • Back-end source :github.com/pl1998/lara…
  • Front-end source :github.com/pl1998/vue_…
  • You can log in by scanning the code on weibo
  • Follow-up: Considering that the main RBAC functions in the background have been improved, the expected functions will be integrated and updated from time to time