askidmobile / angular-6-social-login-v2

Social authentication module for Angular 6. Includes Facebook, Google, Vkontakte
0 stars 6 forks source link

Issue for linkedin provider api-key not valid #4

Open surajKurade-alphonso opened 6 years ago

surajKurade-alphonso commented 6 years ago

hi , i have issue in LinkedIn login , when i use config LinkedIn provider in browser i got an error

Uncaught Error: API Key is invalid
    at authuserspace?v=1.0.339-1429&api_key=:10
    at authuserspace?v=1.0.339-1429&api_key=:31
surajKurade-alphonso commented 6 years ago

hi , i have issue in LinkedIn login , when i use config LinkedIn provider in browser i got an error

Uncaught Error: API Key is invalid
    at authuserspace?v=1.0.339-1429&api_key=:10
    at authuserspace?v=1.0.339-1429&api_key=:31

bug in BaseLoginProvider line no 18

 if (obj.name === 'LINKEDIN') {
      signInJS.async = false;
      signInJS.text = ('api_key: ' + obj.id).replace('\'', '');
    }

it should be

 if (obj.name === 'linkedin') {
      signInJS.async = false;
      signInJS.text = ('api_key: ' + obj.id).replace('\'', '');
    }
lashisu commented 6 years ago

Did you fixed the issue, I am still getting issue. Once I made changes as suggested by "LINKEDIN to linkedin", I am getting new issue

Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration."

Any idea?

surajKurade-alphonso commented 6 years ago

@lashisu It works for me after i made above changes, Have you add domain name in LinkedIn app In JavaScript settings?

lashisu commented 6 years ago

@surajKurade-alphonso thanks for your suggestions. Yes now its working fine for me too. I have now added domain name in LinkedIn app in JavaScript setting which was missing earlier.

Thanks a lot

vishuhanda001 commented 6 years ago

hi bro i am able to see BaseLoginProvider in nodemodules in social plugin but i didnt get these functionality lines present there. can u plz help

ChristianOrrala commented 5 years ago

Hi I made a pullrequest with the easy fix for the Api Key error. #7

taylortrey commented 5 years ago

Hi guys! @surajKurade-alphonso @lashisu @vishuhanda001 @ChristianOrrala

I have fix this problem and create fork for this repo, you can use it by link https://github.com/taylortrey/angular-6-social-login

BruneXX commented 5 years ago

Hi Guys, Is this still working for linkedin? thanks