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
15
votes
11 answers

OmniAuth routing error, no route match

I am working through Ryan Bates railscast #235 OmniAuth Part 1, using the OmniAuth gem to allow users to sign in to my web app using Twitter or Facebook and later Google Apps. Right now I am encountering this error Routing Error No route matches…
scud bomb
  • 415
  • 3
  • 19
15
votes
1 answer

Remove '#_=_' from the Facebook redirect URL

According to https://developers.facebook.com/blog/post/552/ the FB Graph API now appends a _=_ hash to the end of the URL it redirects back to when redirect_uri is not set. However, it is still appending it even though my call specifies the…
Brenden
  • 7,708
  • 11
  • 61
  • 75
15
votes
1 answer

rails omniauth facebook extended permission

I have read the omniauth oauth rdoc @consumer = OAuth::Consumer.new(key, secret, { :site => "http://term.ie", :scheme => :header, :http_method => :post, :request_token_path =>…
wizztjh
  • 6,979
  • 6
  • 58
  • 92
15
votes
3 answers

OmniAuth::NoSessionError - You must provide a session to use OmniAuth. (configured in devise)

Hi I am learning how to use omniauth as backend for ember app. when i run my application I get the below mentioned erroe OmniAuth::NoSessionError - You must provide a session to use OmniAuth on resue rails s my applicataion halts at line below. …
Rigel
  • 882
  • 1
  • 11
  • 32
15
votes
1 answer

Rails Omniauth with outbound http proxy

We're trying to use the linkedin-omniauth gem in a Rails application that's behind an http proxy. I've tried everything I can find to get omniauth to use the proxy but I cannot get it to work. The following post suggests using: provider :linkedin,…
simonmorley
  • 2,810
  • 4
  • 30
  • 61
15
votes
3 answers

Rails Google Client API - unable to exchange a refresh token for access token

After struggling with some SSL issues on my machine, I'm still trying to access a user's Blogger account through the Google Ruby Client API. I'm using the following: Rails 3.2.3 Ruby 1.9.3 oauth2 (0.8.0) omniauth (1.1.1) omniauth-google-oauth2…
14
votes
3 answers

How to change route of omniauth from /auth/:provider to /myapp/auth/:provider

How can I change the route that triggers omniauth from using /auth/:provider to /myapp/auth/:provider ? I don't want to redirect either, because my server will send anything that's not in /myapp/ to the wrong place.
99miles
  • 10,942
  • 18
  • 78
  • 123
13
votes
1 answer

OAuth flow, iPhone -> Rails -> Facebook

I'm building an app with both a web client and a iPhone client. On the web client I authenticate users through Facebook with Omniauth, the user can then post actions on the app to Facebook. That works good. I'm having some problem implementing the…
Yeggeps
  • 2,055
  • 2
  • 25
  • 34
13
votes
2 answers

Devise, OmniAuth & Facebook - How to let user edit password?

I'm hoping that someone else has a good solution for this issue. We let our users register using facebook (by liking an app), and at the same time they enter our database as users on our site. Upon successful registration it seems like…
Emil Ahlbäck
  • 6,085
  • 8
  • 39
  • 54
13
votes
2 answers

OmniAuth using google oauth 2 strategy scope failure

I'm working on getting calendar data from google using OmniAuth and the google-oauth-2 strategy. If I put nothing into the scope field it works fine and I get the default info without the auth/failure message and I can use the app normally. However…
y4ku
  • 513
  • 4
  • 9
13
votes
2 answers

#_=_ added to URL by facebook

After connecting to my Rails app via Facebook I have #_=_ added on to my URL. I tried specifying a redirect_uri as specified by FB but it didn't work. Javascript workaround to remove the symbols doesn't help. I tried everything with no results. Any…
tomek
  • 758
  • 1
  • 8
  • 12
13
votes
1 answer

Devise (or OmniAuth) appending "#_" to URL after sign in

I'm using Devise and OmniAuth (Facebook) in a Rails 3 app. I just started noticing this behavior recently. When a user signs in, he is redirected to his dashboard, however, the characters "#_" are being appended to the url. The only thing I can…
lightyrs
  • 2,809
  • 2
  • 29
  • 32
13
votes
4 answers

Omniauth - Display facebook connect as popup

I am using Omniauth and forcing /auth/facebook to display in a popup (with JS). [Instead of a new window - which is much less user friendly] The problem is: Omniauth loads the FB url with display=page Instead of what I want: display=popup Anyone…
Boris
  • 3,163
  • 5
  • 37
  • 46
13
votes
2 answers

Use POST /sign_in to sign in. GET is not supported. Omniauth-facebook

I've ng-token-auth for frontend and devise_token_auth on the backend . Now i've to implement omniauth-facebook & omniauth-goole logins in my website .Yet i've done facebook login with the following functions in config.js…
Mani
  • 2,391
  • 5
  • 37
  • 81
13
votes
2 answers

Single sign out from multiple applications from Doorkeeper provider

I'm using Doorkeeper for my Rails app, and I'm trying to make so that when a user signs out from the doorkeeper provider, the user will automatically signs out from all apps. By default, when a user signs out from an app, he will still be signed in…
Amirol Ahmad
  • 532
  • 5
  • 21