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

EXTRA_DATA for VK #263

Closed
Nabu-thinker-ru opened this issue May 2, 2014 · 2 comments
Closed

EXTRA_DATA for VK #263

Nabu-thinker-ru opened this issue May 2, 2014 · 2 comments

Comments

@Nabu-thinker-ru
Copy link

After migration from django-social-auth my site can't get extra data from VK.
I had this string in old version settings.py:
VK_EXTRA_DATA = ['photo_big','city', 'country', 'sex', 'contacts', 'bdate', 'education', 'counters']
and all worked fine. But now its broken. I compared backend's code and found this string in djang-social-auth.backends.contrib.vk.VKOAuth2.user_data():
fields = ','.join(VK_DEFAULT_DATA + setting('VK_EXTRA_DATA', []))
How to return this functionality into python-social-auth?

@omab
Copy link
Owner

omab commented May 2, 2014

@Nabu-thinker-ru try defining SOCIAL_AUTH_VK_OAUTH2_EXTRA_DATA.

@Nabu-thinker-ru
Copy link
Author

Its working! Thank you very much!

@omab omab closed this as completed May 3, 2014
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