Skip to content

Can disable ability and scope checking#458

Open
margarizaldi wants to merge 1 commit intoauth0:mainfrom
margarizaldi:main
Open

Can disable ability and scope checking#458
margarizaldi wants to merge 1 commit intoauth0:mainfrom
margarizaldi:main

Conversation

@margarizaldi
Copy link
Copy Markdown

@margarizaldi margarizaldi commented Jul 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant