0 votes
1 view
in Salesforce by (11.3k 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 (28.6k points)

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".

...