My application is authenticating users with the omniauth-facebook gem version 1.6.0. It seems that sometimes within the facebook
action in the OmniauthCallbacksController
, the request.env["omniauth.auth"]
hash will have nil values for provider
and uid
.
I would appreciate any insight into why this would happen. Here's the relevant code from my omniauth config initializer
config.omniauth :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'],
{:scope => 'email, offline_access', :client_options => {:ssl => {:ca_file => '/usr/lib/ssl/certs/ca-certificates.crt'}}}