Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I tried login functionality using 'omnioauth-salesforce' used salesforce developer login, I have mentioned the callback http://localhost:3000/auth/salesforce/callback inside connected app

in my devise.rb

config.omniauth :salesforce, "consumer_id","consumer_secret"

when I click the login link /users/auth/salesforce/ I am getting this error

error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration

1 Answer

0 votes
by (32.1k points)
edited by

Looks like you are using localhost:3000 in your app for callback URL in salesforce. It won't work because salesforce doesn't recognize localhost of your local PC. You should use static IP like

"https://112.167.1.64" rather than "https://localhost:3000".

Go for this in-depth job-oriented Salesforce Certification Course now!

Browse Categories

...