Meteor linkedin accounts , redirect_uri error
Asked Answered
D

1

9

I have registered application in linkedin and gave oauth2 redirect_url as http://localhost:3000/

Then, I have added accounts-linkedin service and added it's depenencies accounts-base,accounts-oauth,linkedin

I added loginButtons template and gave my id and secret in the fields

Now, when I try to login to the app I'm getting the following error

Invalid redirect_uri. This value must match a URL registered with the API Key.

Is there anything I've missed?

Dafna answered 11/6, 2014 at 5:22 Comment(1)
what are requestPermissions? and how did u do that?Limon
D
7

Use http://lvh.me:3000/_oauth/linkedin?close as your oauth redirect URL.

Dulcimer answered 11/6, 2014 at 5:45 Comment(5)
Note that you also need to set your meteor app running on lvh.me instead of localhost by doing: meteor run --port=lvh.me:3000Kerril
Do you mean set it in the dev console on LinkedIn? Or as a value in the template? If you mean in the template, how do you do that? I already have it set in the dev console for my app on LI.Ferullo
what are requestPermissions params?Limon
Where did the lvh.me come from?Restriction
Worked! But disregard Lvh.me and put in localhost:3000 or whatever your server is!Takeshi

© 2022 - 2024 — McMap. All rights reserved.