Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is heroku timing out when I try to use Omniauth + Google Apps?
    primarykey
    data
    text
    <p>I'm trying to use Omniauth to provide simple, basic authentication against Google Apps. Everything works fine locally (even in production mode), but on Heroku I get the following:</p> <pre><code>app[web.1]: Started GET "/auth/admin" for 24.155.228.161 at Fri Jul 22 15:10:26 -0700 2011 heroku[router]: Error H12 (Request timeout) -&gt; GET example.com/auth/admin dyno=web.1 queue= wait= service=30000ms status=503 bytes= heroku[router]: Error H12 (Request timeout) -&gt; GET example.com/ dyno=web.1 queue= wait= service=30000ms status=503 bytes=0 app[web.1]: Generated checkid_setup request to https://www.google.com/a/example.com/o8/ud?be=o8 with assocication AOQobUegRUNfEpz1JOO2bZe0zXrjkdIvdsjpVyCh3rtbL_s-GSfhQ_zY </code></pre> <p>My setup is as follows; </p> <pre><code># initializers/omniauth.rb require "openid/fetchers" OpenID.fetcher.ca_file = "#{Rails.root}/cacert.crt" require 'openid/store/filesystem' Rails.application.config.middleware.use OmniAuth::Builder do provider :google_apps, OpenID::Store::Filesystem.new('./tmp') use OmniAuth::Strategies::GoogleApps, OpenID::Store::Filesystem.new('./tmp'), :name =&gt; 'admin', :domain =&gt; 'bcarc.com' #, :client_options =&gt; {:ssl =&gt; {:ca_file =&gt; './cacert.crt'}} end </code></pre> <p>I've tried switching to memcached, but I can't get either <code>memcached-northscale</code> or <code>dalli</code> to work, and in any case I've verified that nonces are being saved in <code>./tmp</code> correctly, so I don't think that's the problem.</p> <p>I was getting an error about CA certs, but specifying the certificates file to the fetcher solved that, and I'm still getting the timeout.</p> <p>Any suggestions?</p> <p>UPDATE: I've tracked this down to the OmniAuth's callback handler. The request gets sent to Google Apps, but the callback times out before the callback controller has a chance to do anything. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload