omab/django-social-auth — pull request #433 by t0m (2012-08-08 02:27:18+00:00)
Title: Add in support for grabbing linkedin emails

Linkedin as of today allows developers to grab the user's email address
along with a bunch of other attributes as explained in their blog post here:
https://developer.linkedin.com/blog/making-it-easier-you-develop-linkedin

They are using a oauth2-like "scope" parameter to allow applications to
request extended permissions, which I was able to hook into by adding
LINKEDIN_REQUEST_TOKEN_EXTRA_ARGUMENTS = {'scope':'r_emailaddress r_contactinfo}'}
to settings.py.

Note: if you have an old linkedin api key, you have to generate a new one
to use the new goodies, or wait until they provide a migration path.