Skip to content

Unable to retrieve any extra_data from LinkedIn backend #161

@stianpr

Description

@stianpr

Either I'm doing something wrong or there is a bug. I have tested with latest master and in 0.1.17.

After sucessfully created a user the extra_data field contains this:

{
"first_name": null,
"last_name": null,
"access_token": {
  "oauth_token_secret": "****scramled****",
  "oauth_authorization_expires_in": "5183998",
  "oauth_token": "****scramled****",
  "oauth_expires_in": "5183998"
},
"picture_url": null,
"email_address": null,
"id": "****scramled****"
"profile_url": null
}

I have these settings in my settings.py file:

SOCIAL_AUTH_LINKEDIN_SCOPE = ['r_basicprofile', 'r_emailaddress']
SOCIAL_AUTH_LINKEDIN_FIELD_SELECTORS = ['email-address', 'picture-url',
                                        'public-profile-url']
SOCIAL_AUTH_LINKEDIN_EXTRA_DATA = [
  ('id', 'id'),
  ('first-name', 'first_name'),
  ('last-name', 'last_name'),
  ('email-address', 'email_address'),
  ('picture-url', 'picture_url'),
  ('public-profile-url', 'profile_url'),
]

And the SOCIAL_AUTH_PIPELINE setting contains 'social.pipeline.social_auth.load_extra_data',

Any clues of why the extra_data fields are blank? Is there something I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions