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

LinkedIn extra_data only partially retrieved #57

Closed
guyf opened this issue Oct 11, 2013 · 2 comments
Closed

LinkedIn extra_data only partially retrieved #57

guyf opened this issue Oct 11, 2013 · 2 comments

Comments

@guyf
Copy link

guyf commented Oct 11, 2013

Hi,

I have settings:

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

The linkedIn login works fine and I see the correct permissions scope on the linkedIn login dialogue.

When I look in the database post logging in my extra_data contains:

{"first_name": null, "last_name": null, "access_token": {"oauth_token_secret": "xxxxxxxxxxx", "oauth_authorization_expires_in": "5183999", "oauth_token": "xxxxxxxxxxx", "oauth_expires_in": "5183999"}, "industry": "Computer Software", "picture_url": null, "headline": "Co-Founder at Bought By Many", "email_address": null, "id": "N_Nd_fVZMB"}

As you can see most fields are null except industry and headline.

Thanks, Guy.

@omab
Copy link
Owner

omab commented Oct 11, 2013

Check this comment #34 (comment), you are using OAuth1, but try those names anyway (see that attributes names follow camel-case format).

@guyf
Copy link
Author

guyf commented Oct 14, 2013

Camel-case works great - thanks!

@guyf guyf closed this as completed Oct 14, 2013
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