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.
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.