-
Notifications
You must be signed in to change notification settings - Fork 147
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
Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired #31
Comments
I'm having the same issue. Any news here? |
No... perhaps this project is abandoned? I do, however, have news on a similar issue that happened to twitter omniauth gem. You see, for facebook's and google's gems, the credentials attribute names are "client_id" and "client_secret". For twitter, however, the attribute names are "consumer_key" and "consumer secret" I believe, then, that it might have something to do with the attributes's names in this case. Perhaps you can help me investigate it further, @tonatiuh ? |
Hey @ArielAleksandrus, I already found a temporal solution for this issue. I forgot to share here, sorry. The fix that worked for me was to add gem 'omniauth-oauth2', '~> 1.3.1' In my gemfile and then run Basically, that downgraded my version of omniauth-oauth2 to a version where the issue is not present. This has been already discussed in #28 and in http://stackoverflow.com/questions/33975525/rails-omniauth-for-linkedin-not-working. I think that should work for you too. |
There is a PR for fixing that #29 Unfortunately this project seems to be abandoned, so the PR might never get merged. |
I had this issue. Update gem from master branch was fixed it. |
Anyone still dealing with this issue? I have devise 4.3.0 (which now doesn't need a separate omniauth-oauth2). I'm getting this same error. |
I had the same problem, in my case I was using different So my suggestion: make sure the hosts and |
I'm getting this error in Development. Is there a problem with setting localhost:3000 as the domain of the callback? Because it works with facebook and google. I'm having trouble with linkedin and twitter.
This is what I'm getting
{"error_description":"missing required parameters, includes an invalid parameter value, parameter more than once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired","error":"invalid_request"}
My devise.rb has this line:
config.omniauth :linkedin, setup: true
And in the setup method, in a controller, I have these lines
The variables "id" and "token" correctly matches my Linkedin application's credentials.
I'm not setting, though, a "redirect_uri" param. I have only one callback defined in my Linkedin App's dashboard.
I tried setting, though, but got the same error. This was the line I used:
env['omniauth.strategy'].options[:redirect_uri] = "http://localhost:3000/api/v1/users/auth/linkedin/callback
The text was updated successfully, but these errors were encountered: