Salesforce错误= redirect_uri_mismatch&error_description = redirect_uri

jos*_*son 5 salesforce devise omniauth ruby-on-rails-3

我尝试使用'omnioauth-salesforce'使用salesforce开发者登录进行登录功能,我已经提到了http://localhost:3000/auth/salesforce/callback连接应用内的回调

在我的devise.rb

config.omniauth :salesforce, "consumer_id","consumer_secret"
Run Code Online (Sandbox Code Playgroud)

当我点击登录链接时,/users/auth/salesforce/ 我收到此错误

错误= redirect_uri_mismatch&ERROR_DESCRIPTION = REDIRECT_URI%20must%20match%20configuration

小智 -1

您在连接的应用程序中使用 localhost:3000 作为 salesforce 中的回调 url。它不会工作,因为 salesforce 无法识别您本地电脑的本地主机。你应该使用静态IP

https://112.167.1.64 ”而不是“ https://localhost:3000 ”。