jield-webdev / jield-authorize
Small helper module to integrate BjyAuthorize (the kokspflanze/bjy-authorize fork) with dynamic assertions, which cannot be serialized
Installs: 15 897
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ~8.3.0 || ~8.4.0
- doctrine/orm: ^2.13.3 || ^3.0
- kokspflanze/bjy-authorize: ^2.4
- laminas/laminas-cache-storage-adapter-filesystem: ^2.3 || ^3.0
- laminas/laminas-session: ^2.17
- webmozart/assert: ^1.11.0
Requires (Dev)
- iteaoffice/testing: ^5.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-11-21 13:13:16 UTC
README
Small helper module to integrate BjyAuthorize (the kokspflanze/bjy-authorize fork) with dynamic assertions, which cannot be serialized
Default config file
The access_service has to implement AccessRolesByUser
interface and permit_service the HasPermitInterface
the User class has to implement UserAsRoleInterface
and the role class RoleInterface
Make sure that 'BjyAuthorize' is enabled before 'Jield\Authorize' in module.config
namespace BjyAuthorize; use Admin\Entity\Role; use Admin\Service\UserService; return [ 'jield_authorize' => [ 'default_role' => Role::ROLE_PUBLIC, 'authenticated_role' => Role::ROLE_USER, 'access_service' => UserService::class, 'permit_service' => UserService::class, 'cache_enabled' => false, 'role_entity_class' => Role::class, ], ];