Oauth2 with LinkedIn

Hi - I was just setting up LinkedIn as an auth provider for my app. It looks like if you use the available LinkedIn config the default values no longer work (seems LI changed their API scopes/spec a year or so ago). I tweaked the values in the advanced form, and it’s working for me now.

One other thing – it was previously necessary to do a second API call after auth to get the email address – the name and email are now available in the v2/userinfo call, so no second call (or field mapping block) is needed.

If you’d like to update the defaults, here are the changes I made to get it working:
TOKEN SCOPE
OLD: r_liteprofile%20r_emailaddress
NEW: openid%20profile%20email

USER INFO URL
OLD: https://api.linkedin.com/v2/me
NEW: https://api.linkedin.com/v2/userinfo

Default mappings (IN FIRST BLOCK):
OLD: { “id”: “id”, “localizedFirstName&&localizedLastName”: “name” }
NEW: { “sub”: “id”, “name”: “name”, “email”: “email”}

1 Like

Hi @fergus

Thanks for sharing your experience with the Backendless community!
We created a ticket to fix the default configs

Regards,
Vlad