grifart / scoped-authorization
v2.0.0
2021-01-04 16:14 UTC
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-09-05 00:06:53 UTC
README
使用“作用域”的概念来定义用户特定于作用域的角色。
当存在需要获得项目级别权限的用户时,这非常有用。这意味着他们可以访问项目A的经理级别,并可以访问项目B的访客级别。
另一个用户可以拥有全局管理员角色,并且无需成为项目的一部分,即可访问所有项目。
更多资料
- Matej的演讲: https://youtu.be/JAYeMsAxZOE?t=12m16s
- Matej的示例仓库: https://github.com/matej21/nette-authorization-example/blob/master/app/Core/Security/
- CampApp问题: https://gitlab.grifart.cz/KampApp/KampApp/issues/6
- Mango web更完整的实现: https://github.com/mangoweb-backend/authorization
- Grifart分支: gitlab,github
贡献
此存储库是 mangoweb-backend/authorization 的分支。
主要开发地点是 gitlab.grifart.cz。 master
会自动复制回 github:grifart/manogweb-backend-authorization。
提交分支的贡献
内部贡献
使用GitLab并打开合并请求,目标: master
。合并后,它将自动传播到GitHub。
外部贡献
外部开发者:使用GitHub,打开针对 我们的 master
的拉取请求。
内部审查者和维护者
- 从本地仓库获取更改
- 然后将它们合并到本地的
master
- 将本地master推送到
gitlab/master
(这将自动传播到GitHub) - 删除不再需要的分支
推荐的git远程设置
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