Questions tagged [omniauth]

OmniAuth is a flexible Ruby authentication library that standardizes multi-provider authentication for web applications

OmniAuth is a flexible authentication system for Ruby applications utilizing Rack middleware, such as Rails applications. It supports a large number of external authentication providers, such as Facebook, Google, and Twitter.

2360 questions
93
votes
6 answers

How to downgrade bundler or upgrade rails?

I added omniauth gem to my gemfile and tried to run bundle install, but got a message about incompatibility of rails and bundler versions. I tried to update rails, but got messages about incompatibility with other gems. How can I downgrade bundler…
JohnHF
  • 965
  • 1
  • 8
  • 11
66
votes
18 answers

OmniAuth & Facebook: certificate verify failed

I've followed Railscast #235 to try and set up a minimal Facebook authentication. I've first set up a Twitter authentication, as done by Ryan himself. That worked flawlessly. I then moved on to adding a Facebook login. However, after authorizing the…
shmichael
  • 2,985
  • 3
  • 25
  • 32
58
votes
7 answers

Passing parameters through OmniAuth

I need to pass some parameters to callback action. Judging from the source code, OmniAuth should add query string to callback URL but strangely it does not. When I open /auth/facebook?from=partner ...and get redirected to Facebook, return_url is…
synapse
  • 5,588
  • 6
  • 35
  • 65
58
votes
4 answers

Turn omniauth facebook login into a popup

I'm using the omniauth gem with rails and it works great with loging in users, but everytime it takes you to the fb login page then redirects you back. I was wondering if there is a way to do what most pages do and show the fb login in a popup and…
Danny
  • 4,724
  • 6
  • 42
  • 55
56
votes
3 answers

Authenticate user using omniauth and Facebook for a rails API?

I'm building a Rails API and have successfully built a way for a user to authenticate using Omniauth Identity. We simply post to auth/identity/callback from the client, passing in an auth_key and password. The server then returns a doorkeeper token…
idrysdale
  • 1,551
  • 2
  • 12
  • 23
53
votes
3 answers

Setting Environment Variables in Rails 3 (Devise + Omniauth)

I've been trying to figure out how Ryan Bates, in his Facebook Authentication screencast, is setting the following "FACEBOOK_APP_ID" and "FACEBOOK_SECRET" environment variables. provider :facebook, ENV['FACEBOOK_APP_ID'],…
46
votes
1 answer

Callback redirect not preserving session

I have a scenario that works just fine when I am using real omniauth, but fails when I run it with the mock auth in cucumber/capybara. In the callback, when I do sign_in @user, it successfully creates the user and logs in... current_user is set.…
joshwa
  • 1,660
  • 3
  • 17
  • 26
46
votes
9 answers

Omniauth Facebook Error - Faraday::Error::ConnectionFailed

(FYI: I'm following the Twitter Omniauth from railscast #241. I used Twitter successfully, now going onto Facebook) As soon as I logged into Facebook using Omniauth, I get this error: Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0…
user1372829
  • 1,121
  • 1
  • 11
  • 21
42
votes
4 answers

How to rescue OmniAuth::Strategies::OAuth2::CallbackError?

I am building a Rails application with Omniauth for log in service.To authenticate Google I am using OmniAuth Google OAuth2 Strategy. When user clicks 'allow access' button everything works fine.But when user clicks 'no thanks' button the below…
33
votes
7 answers

How to get rid of OpenSSL::SSL::SSLError

I am trying to authenticate users with Facebook using OmniAuth. Initially, it was working, but along the way it just stopped working and started to give me this error message: OpenSSL::SSL::SSLError SSL_connect returned=1 errno=0 state=SSLv3…
Eugene
  • 331
  • 1
  • 3
  • 3
32
votes
6 answers

Refresh token using Omniauth-oauth2 in Rails application

I am using omniauth-oauth2 in rails to authenticate to a site which supports oauth2. After doing the oauth dance, the site gives me the following, which I then persist into the database: Access Token Expires_AT (ticks) Refresh token Is there an…
ganeshran
  • 3,512
  • 7
  • 41
  • 69
28
votes
3 answers

undefined method `session_path'

I am using Rails + Devise + OmniAuth + Google OAuth2. My user model (user.rb) contains: devise :registerable, :omniauthable, :omniauth_providers => [:google_oauth2] My routes.rb look like: Rails.application.routes.draw do devise_for :users,…
user3777406
  • 281
  • 1
  • 3
  • 3
28
votes
8 answers

How can I add localhost:3000 to Facebook App for development

I am working on a Rails 4 app. On my laptop, development is done at localhost:3000. The actual domain of the site is roomidex.com. How can I set up a Facebook app so it works on production and development? Here is the current configuration: App…
Don P
  • 60,113
  • 114
  • 300
  • 432
28
votes
7 answers

Omniauth-facebook keeps reporting invalid_credentials

I am trying to implement omniauth-facebook as described in Railscast #360 and have run into quite a roadblock. When I click on the signin link, I get the desired popup asking me to input my facebook credentials, but when I submit, I get an…
petfreshman
  • 513
  • 2
  • 8
  • 21
27
votes
1 answer

Devise Omniauth and Iphone/Android App

I've set up user auth for my rails App with Devise and Omniauth. Now I'm wondering where I should start to use the same auth for an Android and iPhone app I want to create. Should I use a mobile version of my /auth/facebook or should I directly send…
rnaud
  • 2,610
  • 32
  • 38
1
2 3
99 100