laravel / socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.

Home Page:https://laravel.com/docs/socialite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linkedin provider: get user data

Gerbenodk opened this issue · comments

Socialite Version

5.8.1

Laravel Version

10.41.0

PHP Version

8.1.4

Database Driver & Version

No response

Description

Yesterdays issue had the wrong version of socialite.

LinkedIn updated their products and deprecated the product "Sign In with LinkedIn" and changed it to "
Sign In with LinkedIn using OpenID Connect"
, as of the 1 aug 2023. When using Socialite::driver('linkedin')->stateless()->user(); the API endpoint /me has not enough permissions, the new endpoint is: /v2/userinfo with scope 'openid'.

Steps To Reproduce

Install latest version of both this package as Laravel

Thats right. I`m having the same issue

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

Yes was struggling the same issue from last two days, looking for the solution.

I have the same problem.
In my opinion, if the problems of #651 are fixed to pass the tests, it will be faster than creating a new PR.

Hi all. We'd appreciate a PR to master to implement the new LinkedIn way of doing things.

Hi all. There's a PR up now. Can you all help us verify that it works for you? #660