我试图采用databasedotcom gem,但无法超越身份验证。下面是我做的(后安装databasedotcom宝石):身份验证失败databasedotcom
- 轨C(或IRB然后要求 'databasedotcom')
- 客户端= Databasedotcom :: Client.new:CLIENT_ID => '富',:client_secret > '酒吧'
- client.ca_file = '/Users/tjiang/missioncontrol/tmp/ca-bundle.crt'
- client.verify_mode = OpenSSL的:: SSL :: VERIFY_PEER
- client.authenticate:用户名=>'myusername',:password =>'mypassword'
所有凭证都在该过程中复制并粘贴,因此在那里没有错误;该证书在这里下载:http://certifie.com/ca-bundle/ca-bundle.crt.txt
我试图红宝石187和193,以及内,外轨,反反复复,但总是得到这个错误信息:
Databasedotcom :: SalesForceError:从验证失败/库/红宝石/Gems/1.8/gems/databasedotcom-1.3.0/lib/databasedotcom/client.rb:112:in`authenticate'
我想知道我在这里错过了什么?特别是,我担心在Salesforce中创建远程访问时使用的回拨URL(我尝试了'oob','http:// localhost:3000'和'https://www.salesforce.com',但没有有什么区别)。
这并没有解决我的问题... – s2t2