Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename CheckScopes and CheckForAnyScope to CheckAbilities and CheckForAnyAbility #312

Merged

Conversation

filippofortino
Copy link
Contributor

This PR renames the ChekScopes and CheckForAnyScope middlewares to CheckAbilities and CheckForAnyAbility.

I sent a PR about a week ago porting the ChekScopes and CheckForAnyScope middlewares from Passport, i later realized that the term ability might be a better fit for Sanctum since scopes are referred as abilities both in the Sanctum docs and throughout the code.

Although this might not be necessary, since we're talking about an undocumented feature released 2 days ago, this PR add no breaking changes. The old middlewares are marked as deprecated and use the logic from the newly added ones (which is the same as before).

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.

None yet

2 participants