title: Authentication fails in databasedotcom
body: <p>I am trying to adopt databasedotcom gem, but couldn't get beyond the authentication. Here is what I did (after installing databasedotcom gem):</p>
  
  <ol>
  <li>rails c (or irb then require 'databasedotcom')</li>
  <li>client=Databasedotcom::Client.new :client_id => 'foo', :client_secret=>'bar'</li>
  <li>client.ca_file = '/Users/tjiang/missioncontrol/tmp/ca-bundle.crt'</li>
  <li>client.verify_mode = OpenSSL::SSL::VERIFY_PEER</li>
  <li>client.authenticate :username=>'myusername', :password=>'mypassword'</li>
  </ol>
  
  <p>All credentials are copy-and-pasted in the process so no mistake there; the certificate was downloaded here: <a href="http://certifie.com/ca-bundle/ca-bundle.crt.txt" rel="nofollow">http://certifie.com/ca-bundle/ca-bundle.crt.txt</a></p>
  
  <p>I tried Ruby 187 and 193 as well as inside and outside Rails, repeatedly, but always got this error message:</p>
  
  <p>Databasedotcom::SalesForceError: authentication failure from /Library/Ruby/Gems/1.8/gems/databasedotcom-1.3.0/lib/databasedotcom/client.rb:112:in `authenticate'</p>
  
  <p>I wonder what I have missed here? Particularly, I am concerned about the Callback URL I used when creating a Remote Access in Salesforce (I tried 'oob', 'http://localhost:3000', and 'https://www.salesforce.com', but none made any difference).</p>