angular2-social-login icon indicating copy to clipboard operation
angular2-social-login copied to clipboard

Linkedin not working properly

Open joncorrin opened this issue 7 years ago • 7 comments

I've gotten facebook and google to work properly. Linkedin is buggy. Returning undefined email once, then not returning anything and the modal closes immediately on open.

joncorrin avatar Aug 13 '17 23:08 joncorrin

It's returning an email of undefined. That is the issue. I had a linkedin window open under my window which was causing it to automatically close. The real issue is upon signing in, the linkedin api is not returning the email.

joncorrin avatar Aug 14 '17 16:08 joncorrin

Not sure of what is going on here. Let me check the permission list.

kpsrinivas avatar Aug 24 '17 04:08 kpsrinivas

I've gotten the issue to the point where email is not null but the api is pausing after logging in. The LinkedIn screen goes blank and the URL stays at processing.

joncorrin avatar Aug 24 '17 05:08 joncorrin

Nothing is returned

joncorrin avatar Aug 24 '17 05:08 joncorrin

Whats the callback url you specified in linkedin ?

kpsrinivas avatar Aug 24 '17 06:08 kpsrinivas

Here is the url I get when sending the request https://www.linkedin.com/uas/oauth/authorize?oauth_token=86--6573e1d2-9952-48c4-95a2-b4cfbf7c19a2&state=

This is what is returned:

https://platform.linkedin.com/js/xdrpc.html?v=1.0.65#state=null&access_token={{token}}

token being a long stream of characters.

joncorrin avatar Aug 24 '17 14:08 joncorrin

I had the same problem. What helped was changing permission in linkedin developer settings. I had to check "r_emailaddress" permission, then wait around 10 minutes. Then it started magically working.

Celebes avatar Oct 22 '17 14:10 Celebes