souktel / acl
Manage ACL between Souktel services
V1.0.7
2019-11-10 14:22 UTC
Requires
- php: ^7.1.3
- souktel/message-broker: ^2.0
README
About Souktel
- Website: souktel.com.
- LinkedIn: Souktel.
- Facebook: Souktel Digital Solutions.
- Twitter: Souktel.
About The Project
implementation of ACL in souktel services
Installation
composer require souktel/acl
In Laravel:
- publish config and migrations files from vendor
php artisan vendor:publish --provider="Souktel\ACL\SouktelACLServiceProvider"
In Lumen:
- copy config file from vendor
- copy migration files from vendor
configuration
in config file
variable | description |
---|---|
enable | (boolean) enable or disable ACL in the service [default = true] |
auth | auth functionality |
auth.auth_service | auth service details |
auth.token_header.sent | token header in request sent to Auth service from current service |
auth.token_header.received | token header in request received in the current service |
auth.invalid_payload_exception | Custom exception when token payload is invalid |
acl | acl functionality |
acl.model | permission model |
acl.database | name and slug columns in permissions table in database |
acl.register_permission_message_name | register permission message in message broker |
this_service | current service details |
this_service.key | current service key or slug to be send in register permission message in message broker |