-
Notifications
You must be signed in to change notification settings - Fork 21
Adding Casbin for User Roles #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This will add userRoles back into the API and create a default admin role. resolves #100
We are using Casbin to administer user roles and privvies. This work will add Casbin integration as well as Casbin/Sequelize integration. This includes model, migrate, and seeder. Additionally we are adding brute force protections with this PR. resolves #100
Codecov Report
@@ Coverage Diff @@
## master #123 +/- ##
==========================================
- Coverage 69.31% 68.94% -0.37%
==========================================
Files 14 15 +1
Lines 378 454 +76
==========================================
+ Hits 262 313 +51
- Misses 116 141 +25
Continue to review full report at Codecov.
|
|
@allcontributors add @blakenan-bellese for ideas |
|
@revjtanton I've put up a pull request to add @blakenan-bellese! 🎉 |
…ore-Responsive into revjtanton/issue-100
| @@ -1,6 +1,73 @@ | |||
| [ | |||
| { | |||
| "role": "admin", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an easier way to just let an admin do everything here? Just curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately from what I've seen with Casbin you cannot wildcard the method, it has to be explicit.
… moving limiting to middleware decl
…ore-Responsive into revjtanton/issue-100
We are using Casbin to administer user roles and privvies. This work
will add Casbin integration as well as Casbin/Sequelize integration.
This includes model, migrate, and seeder.
Additionally we are adding brute force protections with this PR.
resolves #100
resolves #101
Todos
Deploy Notes
This will require a re-creation and re-seeding of the db.
Impacted Areas in Application
List general components of the application that this PR will affect: