-
Notifications
You must be signed in to change notification settings - Fork 109
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
Use version 2 of the LinkedIn API #60
Comments
@carlbennettnz to retrieve the "Lite Profile" you just need to specify the scope as passport.use(
new LinkedInStrategy.Strategy(
{
clientID: "",
clientSecret: "",
callbackURL: "",
scope: ['r_liteprofile']
},
async (token, tokenSecret, profile, done) => { }
) Note: FYI, if you try to also filter the "profileFields" like so: profileFields: ['id', 'first-name', 'last-name', 'email-address'] it won't work! |
Just to be clear, LinkedIn are making two distinct changes:
Using the example you gave, requesting just the lite profile scope shouldn't be an issue. It's the later that I think will be the problem. This library authenticates using the v1 API and should be updated to use v2. |
@carlbennettnz you are right actually! |
LinkedIn just sent out an email to their registered developers to say that they're shutting down their support for OAuth 1.0a and their v1 API on 1 March. Obviously this package uses the OAuth 2 API, but it appears it still uses the v1 API to retrieve user profiles. This is going to break soon, and the v2 API only provides a limited subset of the currently available profile information.
From the email:
Full email
The text was updated successfully, but these errors were encountered: