-
Notifications
You must be signed in to change notification settings - Fork 9
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
PR: RBAC Role Based Access Control #27 #31 #82 #85
Conversation
…re available in all tests #27
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 10 21 +11
Lines 233 424 +191
==========================================
+ Hits 233 424 +191
Continue to review full report at Codecov.
|
SourceLevel has finished reviewing this Pull Request and has found:
|
Hi @th0mas, I think I've addressed the issue you noted in #116 (potential sec issue in There are still many more enhancements/refactors that can be applied to auth but I really want to avoid this PR dragging on forever; I'd much rather create new issues for features/enhancements so that we can get this PR merged and then create subsequent (much) smaller / more focussed PRs. Please take a look at this PR as part of your integration work. The only feature I think you might want/need almost immediately is granting roles in any app #119 💡 |
Yeah I think it would be best to merge this to master now and add any extra features as extra PRs. Now #116 is fixed i'm happy to merge this. |
@th0mas thanks for reviewing/merging. 👍 |
This PR is still very much Work In Progress.
So far I've added the
conn.assigns.person
has aroles
key Ensure that Roles (List) is Available on conn.assigns.person.roles #91seeds.exs
Create Default Status in seeds.exs #101/approles/:client_id
Add app_id to roles schema #108:ets
Get List of Roles for App #110Also creating helper functions that can be used to check for roles/permissions in: https://github.com/dwyl/rbac
Please ignore this PR until I have a chance to add more detail.
My focus is on creating a minimal implementation that we can use for dwyl/smart-home-auth-server#1
but with a view to building a more versatile system that can be used for a variety of Apps.