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

Facebook auth should include return_scopes to see which requested permissions have been granted #818

Closed
seawolf42 opened this issue Jan 12, 2016 · 2 comments

Comments

@seawolf42
Copy link

When the user approves FB login, they may grant all, some, or none of the scopes requested by the application. By passing "return_scopes": true as a parameter to the login URL, the data returned includes a list of scopes that were actually granted by the user.

I am happy to do the work to make this work, but I'm not entirely sure where this should go. It appears to be a parameter on the call to the AUTHORIZATION_URL, though when I add it to SOCIAL_AUTH_FACEBOOK_EXTRA_ARGUMENTS in settings it is not being picked up.

An alternate way to retrieve this info is calling the Facebook SDK (using facebook-sdk, for instance), but it seems this belongs in the authentication pipeline as that's where I am populating the database with the user's preferences and settings.

@omab
Copy link
Owner

omab commented Dec 27, 2016

Support added python-social-auth/social-core@4e83280

@omab omab closed this as completed Dec 27, 2016
@seawolf42
Copy link
Author

Awesome, thanks!

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

No branches or pull requests

2 participants