aspnet-contrib / AspNet.Security.OAuth.Providers

OAuth 2.0 social authentication providers for ASP.NET Core
Apache License 2.0
2.34k stars 533 forks source link

I could not authenticate by Linkedin when I redirected to redirect_url after confirm linkedin page authentication #825

Closed NaserParhizkar closed 4 months ago

NaserParhizkar commented 4 months ago

It seams my problem is by https://api.linkedin.com/v2/me url because when I check all steps I able to get token by Postman and when I get information by https://api.linkedin.com/v2/userinfo every thing is good. by the way I attached picture and I have scope openid profile email w_member_social . Although I read in Microsoft document r_emailaddress or something like this and I don't know where can I add those scopes.

NaserParhizkar commented 4 months ago

linkedinAuth

kevinchalet commented 4 months ago

The LinkedIn integration in this repository currently targets the OAuth 2.0 service, not the newer service.

If you want to use the OpenID Connect endpoints, consider using the OpenIddict client and its LinkedIn web provider: https://documentation.openiddict.com/guides/getting-started/integrating-with-a-remote-server-instance.html