Skip to content

Ability to define required scopes by the middleware#2

Open
ldebruijn wants to merge 6 commits intotrungfinity:masterfrom
ldebruijn:master
Open

Ability to define required scopes by the middleware#2
ldebruijn wants to merge 6 commits intotrungfinity:masterfrom
ldebruijn:master

Conversation

@ldebruijn
Copy link
Copy Markdown

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