-
Notifications
You must be signed in to change notification settings - Fork 941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LinkedIn integration does not support scopes #368
Comments
The problem with the LinkedIn provider is that we specifically need to give it the projection with the fields we need and there isn't an api in Socialite to pass along the requested fields atm. Since Socialite is an abstraction for multiple providers and LinkedIn is the only one who needs this it's a bit hard to build this in. I'm not so sure that we should make changes to provide this feature for just the LinkedIn provider. |
@driesvints what about using the wildcard for field selection with LinkedIn? |
That would unnecessarily retrieve data for anyone who doesn't needs it. |
Hi, I also use LinkedIn. I'm trying to get all the user data. I use folowing code: public function redirect($service)
This is what I get: It happens when I use scope "r_fullprofile". |
Microsoft makes this difficult to find (and actually quite confusing because
https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api#field-selections You can see your current permissions under the |
@olivernybroe does linkedin login work for you, though? It seems like it does but I don't get the user's email address back. |
@connecteev Works fine for me. |
@olivernybroe that's interesting...I was connecting Laravel Socialite over APIs, but I figured out the problem and the email address comes through now. |
+1 on the original issue so we can get the vanityName back from Linkedin |
ANy update on this? |
@connecteev everyone's free to send in a pr to help solve this problem. |
Hello @olivernybroe When you have created the Linkedin app then go to the product tab and select the Sign In with LinkedIn. scope issues auto resolved into any version of the socialite package. |
When I enable the "Share on LinkedIn" product and try to add the return Socialite::driver('linkedin')
->scopes(['w_member_social'])
->redirect(); |
Description:
When using linkedIn with scopes, the scope is requested, however the data is not getting fetched afterwards.
When I for example have the scope
r_basicprofile
, I should be able to get thevanityName
, however this data is not getting fetched.Looking into the provider, we have a bunch of hardcoded properties, these do not change depending on which scope I am requesting.
Steps To Reproduce:
Make a request with scope
r_basicprofile
.The text was updated successfully, but these errors were encountered: