Sha256: cd18b3f5e987b4d7d1f9e30f85907578c47c29a2cde67c0d37c28da031d5f4b6
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
Rails.application.config.middleware.use OmniAuth::Builder do provider :identity, :fields => [:code, :email], :on_failed_registration=> lambda { |env| IdentitiesController.action(:new).call(env) } provider :facebook, ENV['FACEBOOK_API'], ENV['FACEBOOK_KEY'] provider :google_oauth2, ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'], skip_jwt: true end # https://stackoverflow.com/questions/11461084/handle-omniautherror-invalid-credentials-for-identity-login OmniAuth.config.on_failure = Proc.new { |env| OmniAuth::FailureEndpoint.new(env).redirect_to_failure }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jinda-0.8.0 | test/dummy/config/initializers/omniauth.rb |
jinda-0.7.7.4 | test/dummy/config/initializers/omniauth.rb |
jinda-0.7.7.3 | test/dummy/config/initializers/omniauth.rb |