title: withings api authentication
body: <p>I am trying to authenticate with the withings api. I have got the consumer key and secret correctly and am able to get to the app page, and I can also authenticate with the api.</p>
  
  <p>The problem is that it is not coming back, instead showing a 404 error: page not found.
  I have cross-checked the callback url many times.</p>
  
  <p>Here's the <a href="http://oauth.withings.com/account/authorize?oauth_callback=http%3A%2F%2F127.0.0.1%3A3000%2Fauth%2Fwithings%2Fcallback&amp;oauth_token=3659f7e3c3eccbfc6990fe5f194d4c947783b1544755c6147f380813231" rel="nofollow">url</a>.</p>
  
  <p>This is the code I am trying to authenticate with: <a href="http://www.withings.com/en/api/oauthguide#registration" rel="nofollow">Documentation</a>, <a href="https://github.com/simplificator/simplificator-withings" rel="nofollow">Gem1</a>, <a href="https://github.com/webmonarch/withings-api" rel="nofollow">Gem2</a>.</p>
  
  <p>I want to get the user back to my application.</p>
  
  <pre><code>@callback_url = 'http://127.0.0.1:3000/auth/withings/callback'
      @consumer = OAuth::Consumer.new(WITHINGS_KEY, WITHINGS_SECRET, {
          :site =&gt; 'https://oauth.withings.com',
          :request_token_path =&gt; '/account/request_token',
          :access_token_path =&gt; '/account/access_token',
          :authorize_path =&gt; '/account/authorize'
      })
      @request_token = @consumer.get_request_token(:oauth_callback =&gt; @callback_url)
      session[:request_token] = @request_token
      redirect_to @request_token.authorize_url(:oauth_callback =&gt; @callback_url)
  </code></pre>