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
9
votes
1 answer

omniauth-facebook cannnot get email address

I created new Rails App and install Devise and omniauth-facebook gem. And setting my Facebook App, as testing environment. So, I logged in via facebook and signed up my new Rails app, but request.env did not contain email address.info. this is…
myoo
  • 333
  • 2
  • 11
9
votes
3 answers

Getting (omniauth-facebook) and (omniauth-twitter) work

I'm using: Ruby on Rails 4 devise 3.0.3 omniauth (1.1.4) omniauth-facebook (1.4.1) omniauth-twitter (1.0.0) I recently set up my omniauth-facebook and everything works fine. Now i want to add omniauth-twitter but somehow i mess things up, pretty…
Mini John
  • 7,855
  • 9
  • 59
  • 108
9
votes
2 answers

Rails Facebook login error with omniauth-facebook - OmniAuth::Strategies::OAuth2::CallbackError

I'm trying to make Facebook login with omniauth-facebook in Rails 3.2.9; I have followed the steps of Ryan Bates in http://railscasts.com/episodes/360-facebook-authentication and in this very moment I have the same code. If I try to login without…
pablomarti
  • 2,087
  • 2
  • 22
  • 35
9
votes
0 answers

New LinkedIn Permissions - Scope Not Being Communicated

LinkedIn recently changed their API to require that third parties be more explicit in what information they request. In order to access a user's past employment history and education with omniauth, you must pass the r_fullprofile permission token…
po.studio
  • 4,007
  • 5
  • 25
  • 37
9
votes
2 answers

Handle OmniAuth::Error (invalid_credentials) for Identity Login

I'm using OmniAuth Identity for normal logins. Rails 3.2.3 and Ruby 1.9.3p194. Currently, when an existing user attempts to login with invalid credentials, I get the following error: Started POST "/auth/identity/callback" for 127.0.0.1 at 2012-07-12…
andrewhl
  • 992
  • 1
  • 11
  • 31
9
votes
4 answers

Devise with Omniauth for multiple models without STI

Is there any way to configure Devise Omniauth for multiple models without STI? We have the models Students and Professors and we didn't want to use STI but now we realized that Devise with Omniauth doesn't play well with multiple…
marc_ferna
  • 5,837
  • 1
  • 18
  • 22
8
votes
3 answers

WEBrick: RequestURITooLarge: should I update or use a different server?

I currently have: $ rails s => Booting WEBrick => Rails 3.0.9 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2011-11-30 13:18:00] INFO WEBrick 1.3.1 [2011-11-30 13:18:00] INFO …
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
8
votes
3 answers

omniauth OAuthException & OAuth::Unauthorized

I have installed omniauth 1.0. Also I have oauth-0.4.5, oauth2-0.5.1, omniauth-facebook-1.0.0, omniauth-twitter-0.0.6. omniauth.rb Rails.application.config.middleware.use OmniAuth::Builder do provider :developer unless Rails.env.production? …
Alex D.
  • 97
  • 1
  • 8
8
votes
1 answer

Set a password after creating an account with Omniauth (Rails + Devise)

How can I let users set passwords once they create an account through Omniauth? Omniauth creates a stub password during registration, but the user does not know what that password is, therefore cannot change it from the edit user page. I tried to…
Engin Erdogan
  • 631
  • 1
  • 5
  • 19
8
votes
2 answers

Getting Rails 3.1's has_secure_password to work well with OmniAuth

I'm porting a project from Rails 3 to 3.1. My authentication system was easily switched over to the new has_secure_password in ActiveRecord. The only problem I'm running into is that I also use OmniAuth and I have the system set up so if a user…
Scott Martin
  • 620
  • 6
  • 14
8
votes
2 answers

Devise, twitter - ask for confirmation email

I have implemented twitter authentication with devise using something very similar to this: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview My question is, since twitter doesn't give you the email of the user, how can you direct the…
xjq233p_1
  • 7,810
  • 11
  • 61
  • 107
8
votes
4 answers

"No route matches [GET] "/auth/google_oauth2" error keeps coming up

Error Message: "No route matches [GET] "/auth/google_oauth2" View page link: <%= link_to "Log In with Google", "/auth/google_oauth2" %> Relevant gems: gem 'omniauth' gem 'dotenv-rails' gem 'omniauth-google-oauth2' Initializer…
BeccaN
  • 121
  • 1
  • 6
8
votes
2 answers

How to use YML values in a config/initializer

I'm working to integrate facebook in my app. To do that I'm using koala, devise, and omniauth. For koala, I have /config/facebook.yml development: app_id: 123123132123 secret_key: dasadsasd1231231 test: app_id: 313131313 …
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
8
votes
2 answers

Finding user's friends with Facebook Graph API

I'm trying to allow users that have connected their Facebook accounts to my rails app to find their Facebook friends that have already registered in the app, preferably in an index like format (similar to Formspring's display). Currently I'm using…
ahuang7
  • 804
  • 1
  • 11
  • 26
8
votes
2 answers

How to use omniauth to make authenticated calls to services?

I've received a token / secret from a service using OmniAuth and can store it for users, but I'm stuck as to how to actually use these to call a service. The closest thing I've seen to this question is here but the way he's solved that there doesn't…
Kevin Davis
  • 2,698
  • 1
  • 22
  • 27