In my meteor application I am using the packages accounts-linkedin and linkedin to allow my users to signin with linkedin. This has always been working fine for several month. However, since yesterday users who have signed in to my website via linkedin in the past are not recognized anymore. When they go to "login with linkedin" a new meteor user account is created for them instead of logging them into their existing account. When I test my application: Signing up via linkedin und then logging out and in, everything is working fine. Apparently it is only not working for accounts that already existed a few days ago. This is really strange. The accounts code of meteor is really complex. What could be the reason that a user is not recognized anymore but a new user account gets created for them? Could it be that linkedin messed up tokens on their side? (the linkedin id and accessToken in my users object (services.linkedin) did not change over the last days)
1 Answers
0
votes
This is a bug in pauli:accounts-linkedin. The pauli:linkedin package was using the wrong value for the user's LinkedIn ID. I have submitted a pull request which fixes that problem for new users, but a fix is still needed to migrate the IDs of existing users. I recommend subscribing to the bug to track progress.
pauli:accounts-linkedinis the most popular. Is that the one you are using? Also, what versions of that package and thelinkedinpackage are you using, and did you update either of them or Meteor itself recently? - Dean Brettlepauli:linkedinextracts the id from the query parameter of the user'ssiteStandardProfileRequest.urlwhich is part of the data returned by an authenticated call tohttps://www.linkedin.com/v1/people/~. Another part of that data is anidfield. When I just tested this for my own account, I get different values for the 2 ids. The query param is long and the field is 10 characters (including some letters). I'm not sure why pauli is using the query param. Perhaps they used to be the same, but LinkedIn changed the query param recently? - Dean Brettle