grifart / scoped-authorization
Installs: 18 998
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 4
Open Issues: 0
Requires
- php: ~7.1 || ~8.0
Requires (Dev)
- grifart/phpstan-oneline: ^0.4
- laminas/laminas-permissions-acl: ^2.5
- nette/di: ~3.0
- nette/security: ~3.0
- nette/tester: ~2.0
- phpstan/phpstan: ^0.12.52
- phpstan/phpstan-deprecation-rules: ^0.12.5
- phpstan/phpstan-strict-rules: ^0.12.5
Suggests
- nette/security: For Nette authorizator support
- zendframework/zend-permissions-acl: For Zend Permissions ACL support
This package is auto-updated.
Last update: 2024-11-05 00:27:13 UTC
README
Uses concept of "scopes" to define scope-specific roles for users.
This is useful when there are for users that gains project-level permissions. This means they have manager-level access to project A and guest-level access to project B.
Another user can have global role of administrator and can gain access to all projects without need of being part of a project.
Further sources
- Matej's talk: https://youtu.be/JAYeMsAxZOE?t=12m16s
- Matej's example repo: https://github.com/matej21/nette-authorization-example/blob/master/app/Core/Security/
- CampApp issue: https://gitlab.grifart.cz/KampApp/KampApp/issues/6
- Mango web more complete implementation: https://github.com/mangoweb-backend/authorization
- Grifart fork: gitlab, github
Contributing
This repository is fork of mangoweb-backend/authorization.
Primary development place is gitlab.grifart.cz. master
is automatically replicated back to github:grifart/manogweb-backend-authorization.
Submitting contribution into fork
Internal contributions
Use GitLab and open merge request, target: master
. After merge it will be automatically propagated to GitHub.
External contributions
External developers: Use GitHub, open pull request targeting our master master
.
Internal reviewer and maintainer:
- fetch changes to local repo
- then merge into local
master
- push local master into
gitlab/master
(this will be automatically propagated to GitHub) - remove branches that are not needed anymore
Recommended git remotes setup
git remote add origin https://gitlab.grifart.cz/grifart/authorization.git git remote add github-grifart https://github.com/grifart/manogweb-backend-authorization.git git remote add github-mangoweb https://github.com/mangoweb-backend/authorization.git