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

Ability to define required scopes by the middleware #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ldebruijn
Copy link

This PR brings the ability to add an array with required scopes (permissions) which are checked against the authorized scopes from the user. Facebook allows users the choice to dis-allow scopes our application really needs. Say, for example, we really need the email scope for our application to work, but the user doesn't want to authorize us being able to view their email address. This allows us to throw an error back to the client saying we do really need that email scope.

The client can then keep asking for the right scopes until the users either choses to authorize it, or decides not to use facebook for our application.

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