Salesforce error=redirect_uri_mismatch&error_description=redirect_uri
Salesforce error=redirect_uri_mismatch&error_description=redirect_uri
I tried login functionality using 'omnioauth-salesforce' used salesforce developer login , i have mention the callback http://localhost:3000/auth/salesforce/callback
inside connected app
http://localhost:3000/auth/salesforce/callback
in my devise.rb
config.omniauth :salesforce, "consumer_id","consumer_secret"
when i click login link /users/auth/salesforce/
i have getting this error
/users/auth/salesforce/
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
http://localhost:3000/auth/salesforce/callback
http://localhost:3000/users/auth/salesforce/callback
Even I am facing same problem now, where is this url reading from? localhost:3000/users/auth/salesforce/callback. If it is another local url what needs to be there in the url?
– bekur
Apr 27 '15 at 16:40
2 Answers
2
You are using localhost:3000 in your connected app for callback url in salesforce. It will not work because salesforce does not recognize localhost of your local pc. You should use static ip like
"https://112.167.1.64" instead of "https://localhost:3000".
Please make sure to include REDIRECT_URI
as a query param in your authorization/login redirection URL and that it is the same as mentioned in the connected app.
REDIRECT_URI
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
now it's work to changed callback
http://localhost:3000/auth/salesforce/callback
replaced thishttp://localhost:3000/users/auth/salesforce/callback
– joshuawatson
Sep 10 '14 at 15:11