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
10
votes
2 answers

How can I connect Aweber to my Rails app using OAuth?

I'm trying to integrate my Rails app with Aweber via OAuth, using the official aweber gem. If I follow their flow in the Rails console, I can get an access token, no problems: oauth = AWeber::OAuth.new(ENV["AWEBER_CONSUMER_KEY"],…
GMA
  • 5,816
  • 6
  • 51
  • 80
10
votes
1 answer

SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A - Faraday::Error::ConnectionFailed

I've seen many answers here, but none of them has worked. I'm using omniauth-oauth2 gem to integrate with a third-party customer. I'm using the setup phase described here but I'm always getting this error: Authentication failure! failed_to_connect:…
Cleyton
  • 2,338
  • 6
  • 23
  • 39
10
votes
4 answers

Google OAuth 2 redirect_uri_mismatch - OmniAuth Rails app

I've a problem with authenticating Google account with my Rails app. I'm using omniauth-google-oauth2 gem with Devise. Always get this Error when I try to access google account: Error: redirect_uri_mismatch The redirect URI in the request:…
Azzurrio
  • 1,330
  • 1
  • 17
  • 35
10
votes
3 answers

omniauth google-oauth2 with devise - invalid_credentials and "Csrf detected"

Dear Fine People of SO: I am developing a Ruby app on Rails 3.2.12 (and I am still new to it). I am trying to get Devise working with Omniauth... the first strategy I am trying is Google_oauth2. I have it working to the point where Google has…
Doug
  • 642
  • 1
  • 4
  • 14
10
votes
3 answers

Rails omniauth-facebook unsolved issue

The current omniauth-facebook seems to have some issues, and I want to know if anyone has answers to them. First issue was the invalid credentials problem. I couldn't log in to my application using the client-side authorization because of this…
Maximus S
  • 10,759
  • 19
  • 75
  • 154
9
votes
1 answer

How to fix SSL error thrown by omniauth LinkedIn

I'm trying to set up an authentication via LinkedIn in the rails 5.2 application, for the same I'm referring to the documentation given by devise but I am getting the following error: ERROR -- omniauth: (linkedin) Authentication failure! Connection…
9
votes
1 answer

Devise Omniauth "encrypted_password may not be NULL" for new user

I am using Devise with Omniauth to have users sign into my app with Facebook. I used the Railscast tutorials to get it up and running. If a user is already a member of my site authenticating through facebook works fine. The problem comes in when…
looloobs
  • 761
  • 2
  • 11
  • 24
9
votes
1 answer

Rails3: Devise internationalization does not localize "Password confirmation" and others

Here is my whole source code for a minimalist Devise+OmniAuth app. As you can see, the Japanese devise.ja.yml is in config/locales. PROBLEM: When I visit the site with lang=ja, some strings are not in Japanese but English: "サインアップ" is displayed…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
9
votes
3 answers

How can I pass parameters through an OAuth authentication so that my callback or controller can use?

I am using OAuth to a provider (LinkedIn). I want to be able to pass parameters so that when someone signs-up, I can add some additional values at the time the new User is created (I am using Devise). But how do I do that? It looks like the link…
Satchel
  • 16,414
  • 23
  • 106
  • 192
9
votes
1 answer

LinkedIn photo_urls or picture-urls::(original) not being returned

So I am using omniauth and devise for LinkedIn authentication in my Rails 5 app. omniauth-linkedin-oauth2 (0.2.5) devise (4.4.1) Everything is working great for the most part and users are able to signup and authenticate using LinkedIn. However…
9
votes
3 answers

How can I specify the Facebook permissions (aka scope) OmniAuth asks for DYNAMICALLY?

This question is similar to How can I specifiy what access I need from my user's Facebook accounts when using OmniAuth? but has a caveat. I'm using OmniAuth to authorize Facebook users on my website. For regular login/registration, asking the user…
Sean Ahrens
  • 1,025
  • 1
  • 9
  • 18
9
votes
2 answers

User auth example in Rails 3, using Devise, OmniAuth, Mongoid, and JSON responses

I have integrated Devise and OmniAuth with my Mongoid ORM setup using the following examples: https://github.com/plataformatec/devise/wiki/Example-Applications My client code is mostly JavaScript (ExtJS) and relies on JSON for all of the…
Mike Clymer
  • 1,218
  • 11
  • 15
9
votes
2 answers

OAuth2::Error, invalid_request: redirect_uri does not match application configuration

I'm working on a rails app that authenticates using Bungie OAuth using this gem. My configurations in initializers/devise.rb are as follows: config.omniauth :bungie, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], ENV['X_API_KEY'],…
Luminusss
  • 571
  • 1
  • 6
  • 27
9
votes
2 answers

Devise omniauth integration problem

I have watched railscast http://railscasts.com/episodes/236-omniauth-part-2 And tried to implement the code, everything worked well in development environment. when I executed using rails s -e production, I get the error…
Yekmer Simsek
  • 4,102
  • 3
  • 21
  • 19
9
votes
1 answer

Rails 5, Devise, Omniauth, Twitter

I know this has been asked many times, but the answers are never fully acceptable to me. So I am following Ryan Bates' Railscast about this topic, and mixing that with the official Devise Omniauth guide (that is based on FB), but I am just not…
marcamillion
  • 32,933
  • 55
  • 189
  • 380