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

sending wrong scope for linkedin

fkhodamoradi opened this issue · comments

Socialite Version

5.9.1

Laravel Version

10.0

PHP Version

8.2

Database Driver & Version

No response

Description

for integrate with linkedin, this package send default scopes as : r_liteprofile, r_emailaddres

both of them have been change by linked in, the correct values is : profile, openid and email

Steps To Reproduce

Route::get('/redirect', function () {
return Socialite::driver('linkedin')
->scopes(['openid', 'profile', 'email'])
->redirect();
});

same as #649

You'll need to use the open id provider: #662