Skip to content
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

InternalOAuthError: failed to fetch user profile #75

Open
manast opened this issue May 21, 2019 · 7 comments
Open

InternalOAuthError: failed to fetch user profile #75

manast opened this issue May 21, 2019 · 7 comments

Comments

@manast
Copy link

manast commented May 21, 2019

So today, out of the blue this error appeared. On my app, that has been using linkedin singin since 2011. I have the latest version of passport-linkedin-oauth2, everything seems correct in the app settings in linkedin developer page... Any ideas what can produce this error? Seems somehow related to the API 1.0 deprecation, but what do we need in order to comply? since we were using OAuth2 already for years I did not think any action needs to be taken...
If somebody has a hint I really appreciate a prompt response, no customer can login in the system using linkedin which is quite a severe issue :/.

@manast
Copy link
Author

manast commented May 21, 2019

ok. verified that the problem is with this module that has not been updated to linkedin API 2.0 as reported in this issue:_ #24
I have to say that I am deeply disappointed on the maintainers of this module. How is it possible that a change that has been communicated by linked in for many months has not yet arrived to this codebase? This is breaking all production environments that uses this package, completely unacceptable. If you are unable to maintain it, please make it clear in the README.

@manast
Copy link
Author

manast commented May 21, 2019

This fork has a fix for the problem: https://github.com/sokratisvidros/passport-linkedin-oauth2

@trungtangg
Copy link

This fork has a fix for the problem: https://github.com/sokratisvidros/passport-linkedin-oauth2

IS there a reason why this only supports r_lite_profiles now?

@guix77
Copy link

guix77 commented Jun 7, 2019

Sokratisvidros's works for me and I'm using it without a session. Thanks

@chuck-park
Copy link

@trungtangg Yeah I think you were right. All I have to do is change r_basicprofile to r_liteprofile to make it work.

@l5
Copy link

l5 commented Jan 1, 2024

For me, the solution suggested in this comment solved the issue: #102 (comment)

@mukeshsinghmanral
Copy link

mukeshsinghmanral commented Sep 27, 2024

add "openid" in scope, it will work

passport.use(new LinkedinStrategy({
clientID: process.env.LINKEDIN_CLIENT_ID,
clientSecret: process.env.LINKEDIN_CLIENT_SECRET,
callbackURL: "http://localhost:3000/auth/linkedin/callback",
scope: ['email','profile','openid'],

},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants