laravel-auth0
laravel-auth0 copied to clipboard
Can disable ability and scope checking
Changes
It can disable the ability and scope checking in Gate to not bother application that implement its own RBAC, especially for those having existing permissions with : character and takes advantage of can method such as spatie/permission.
I think this is important since:
- The Gate interception avoids us to use colon as permission name for our own rbac implementation
- using colon, such as
view:user,create:post, etc is common practice - Auth0 RBAC feature is optional after all
Also I believe that this PR won't introduce any breaking change.
References
#457
Testing
Anyone please help me adding tests to this PR 😃
Contributor Checklist
- [x] I have read the Auth0 general contribution guidelines
- [x] I have read the Auth0 code of conduct