Passport: LinkedIn API V1 does not work anymore

Created on 20 May 2019  路  2Comments  路  Source: jaredhanson/passport

LinkedIn has officially dropped support for V1 API (https://engineering.linkedin.com/blog/2018/12/developer-program-updates) and now passport-linkedin strategy stopped working. All callbacks get the following error message:

InternalOAuthError: failed to fetch user profile
       at /Users/gsolovyev/git/d4hv2/node_modules/passport-linkedin/lib/strategy.js:145:28
       at passBackControl (/Users/gsolovyev/git/d4hv2/node_modules/oauth/lib/oauth.js:397:13)
       at IncomingMessage.<anonymous> (/Users/gsolovyev/git/d4hv2/node_modules/oauth/lib/oauth.js:409:9)
       at IncomingMessage.emit (events.js:194:15)
       at IncomingMessage.EventEmitter.emit (domain.js:441:20)
       at endReadableNT (_stream_readable.js:1103:12)
       at process._tickCallback (internal/process/next_tick.js:63:19)

LinkedIn API returns HTTP 401 error code with message:
This resource is no longer available under v1 APIs

Most helpful comment

I think this needs to be posted in the passport-linkedin repo

All 2 comments

BTW, this error is thrown with both _passport-linkedin_ and _passport-linkedin-oauth2_ strategies

I think this needs to be posted in the passport-linkedin repo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itaditya picture itaditya  路  5Comments

AdityaAnand1 picture AdityaAnand1  路  4Comments

wongeun picture wongeun  路  4Comments

Gibbo3771 picture Gibbo3771  路  4Comments

tobymurray picture tobymurray  路  6Comments