How to always get email address for Twitter, LinkedIn (aka _EXTENDED_PERMISSIONS)

139 views
Skip to first unread message

Alexander Todorov

unread,
Oct 27, 2012, 2:19:40 PM10/27/12
to django-so...@googlegroups.com
Hi guys,
my site is using several social auth providers and they either seem to always
provide the email address or be configurable with
XXXXX_EXTENDED_PERMISSIONS = ['email']



GITHUB_EXTENDED_PERMISSIONS = ['email']
FACEBOOK_EXTENDED_PERMISSIONS = ['email']
GOOGLE_OAUTH2_EXTENDED_PERMISSIONS = ['email']

^^^ Logging in with any of these will always update the email, even if it is
already set to a different value.


TWITTER_EXTENDED_PERMISSIONS = ['email']

LINKED_EXTENDED_PERMISSIONS = ['email']
LINKEDIN_SCOPE = ['r_basicprofile', 'r_emailaddress']


^^^ none of these works. Any suggestions? I wasn't able to find enough info in
the docs.


Regards,
Alex

Matías Aguirre

unread,
Oct 27, 2012, 2:54:30 PM10/27/12
to django-social-auth
Twitter won't send email, they don't provide it and don't have an scope to
enable it.

Linkedin doesn't provider email address by default, you need to query
https://api.linkedin.com/v1/people/~/email-address
in order to fetch it AFAIK.

Matías

Excerpts from Alexander Todorov's message of 2012-10-27 16:19:40 -0200:
--
Matías Aguirre (matias...@gmail.com)
Reply all
Reply to author
Forward
0 new messages