Skip to content

Add withRequiredScope #2

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

Merged
merged 4 commits into from
Jul 27, 2015
Merged

Add withRequiredScope #2

merged 4 commits into from
Jul 27, 2015

Conversation

chadicus
Copy link
Owner

The goal of this pull request is to keep the Authorization middleware reusable and allowing for various scope checking.

Example Usage:

$app->post('/foo', $authorization->withRequiredScope(['createFoos']), function () {
    //create a new foo
});

@chadicus chadicus force-pushed the develop branch 2 times, most recently from 0cbb729 to 12f8af7 Compare July 27, 2015 12:34
@chadicus chadicus changed the title Add requireScope Add withRequiredScope Jul 27, 2015
chadicus added a commit that referenced this pull request Jul 27, 2015
@chadicus chadicus merged commit 3e74ef8 into master Jul 27, 2015
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0cbb729edf795a7f2e9d4f9bcef2a166260b443a on develop into ** on master**.

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.

2 participants