auth0 / passport-linkedin-oauth2

Passport Strategy for LinkedIn OAuth 2.0
MIT License
119 stars 107 forks source link

LinkedIn Deprecated Sign In with LinkedIn V1 #97

Open charlower opened 1 year ago

charlower commented 1 year ago

Description

https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin

Looks like they only offer Sign in with Linked In OpenID now, so I don't think this strategy works anymore. More info here:

https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2

I'm not smart enough to fix it.

Edit: Strategy won't work for NEW LinkedIn apps.

nguaman commented 1 year ago

I found several people with the same problem: Here is the thread from the official Auth0 forum. https://community.auth0.com/t/use-linkedin-social-connection-with-basic-profile-on/111588/4

Apparently, the generated URL is as follows:

https://www.linkedin.com/oauth/v2/authorization?login_hint=&prompt=login&response_type=code&redirect_uri=https%3A%2F%2Fxxxx.eu.auth0.com%2Flogin%2Fcallback&scope=r_liteprofile&state=xxxx&client_id=xxxx

In the scope, it still uses 'r_liteprofile', which should be replaced with 'profile' from what I understand.

charlower commented 1 year ago

yeah i tried using profile but was getting an 'internal oauth' error. Thanks for the thread link - looks like their engineers are looking into it.

mahaboobkhan29 commented 1 year ago

Any solution how to use singin with linkedin in our website?