By: Ian Vogel user 10 Jun 2019 at 12:05 p.m. CDT

3 Responses
Ian Vogel gravatar
Hello, Passport social login works perfectly for google and facebook, but there seems to be an API version related issue with the linkedin hook. Here's the error thrown in the passport log: 2019-06-11T02:18:53+1000 [ERROR] Unknown Error: InternalOAuthError: failed to fetch user profile (status: 410 data: { "errorCode": 0, "message": "This resource is no longer available under v1 APIs", "requestId": "D106UK7MA5", "status": 410, "timestamp": 1560183533411 }) Some other occurrences of this issue [here](https://www.google.com/search?q=linkedin+This+resource+is+no+longer+available+under+v1+APIs&oq=linkedin+This+resource+is+no+longer+available+under+v1+APIs&aqs=chrome..69i57.2071j0j7&sourceid=chrome&ie=UTF-8)

By Jose Gonzalez staff 11 Jun 2019 at 7:23 a.m. CDT

Jose Gonzalez gravatar
Hi Ian, Thanks for reporting. Unfortunately we can't tackle the problem in this very moment so I opened an [issue](https://github.com/GluuFederation/gluu-passport/issues/62) to perform further verification afterwards. In the meantime, my suggestion is that, as part of community, you may try to conduct the investigation your own, and share here your findings or workarounds if any. I think we can turn our attention into that issue by next month. Kind regards, Jose

By Ian Vogel user 11 Jun 2019 at 8:09 a.m. CDT

Ian Vogel gravatar
No problem, I just wanted to report it. I'm definitely not qualified to approach this issue myself...thanks for putting it in your queue! very much appreciated

By Jose Gonzalez staff 24 Jun 2019 at 6:42 a.m. CDT

Jose Gonzalez gravatar
Hi, We've had some time to look into this. The github issue was updated to explain the source of problem. It all boils down to use a fork of the original passport-linkedin-oauth2 strategy that contains the fix. In case of CE 3.1.x the steps to follow are like this: - Have as reference docs https://gluu.org/docs/ce/authn-guide/passport/#supporting-a-new-strategy and https://github.com/sokratisvidros/passport-linkedin-oauth2/ - The ID of the module to install and import in node code is `@sokratis/passport-linkedin-oauth2` - Use `scope: ['r_emailaddress', 'r_liteprofile']` when instantiating the strategy - Value for variable `userProfile` can be the same I suggested in your former ticket about windows live