decioferreira / omniauth-linkedin-oauth2

A LinkedIn OAuth2 strategy for OmniAuth.
MIT License
117 stars 147 forks source link

Invalid redirect_uri #20

Closed bigardone closed 10 years ago

bigardone commented 10 years ago

Hi! Since today, when I try to authenticate in LinkedIn, I get an error page from LinkedIn with the following error:

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

It seems that from now on the redirect_uri has to be sent also in the request, as specified here:

https://developer.linkedin.com/documents/authentication#oauth2-redirect-uri

Is this happening to anyone else? It's been working like a charm until this morning... Thanks in advance.

bigardone commented 10 years ago

Never mind. I changed the redirect url in my LinkedIn app configuration and worked fine again.

OsloHill commented 10 years ago

Hello Bigardone, How did you change the redirect url in your app? I have a rails app but not sure how to change the config for linkedin. Not sure where the code belongs.

bigardone commented 10 years ago

Hi @OsloHill ! Just go to your https://developer.linkedin.com/ and in the configuration of you app add them in the redirect urls box :)

OsloHill commented 10 years ago

Hi Ricardo,

What should I add to my urls box?

In OAuth 2.0 Redirect URLs, I have: http://www.coalfacer.com/, http://www.coalfacer.com

What else do i need to include?

Thank you On 9 June 2014 at 7:48:28 pm, Ricardo García (notifications@github.com) wrote:

Hi @OsloHill ! Just got to your https://developer.linkedin.com/ and in the configuration of you app add them in the redirect urls box :)

— Reply to this email directly or view it on GitHub.

bigardone commented 10 years ago

@OsloHill it depends on your app... in mine was something like https://myapp.com/auth/linkedin/callback Notice that you must set the full url