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

Omniauth & Foursquare: uid is nil

I'm using the last omniauth gem, and the omniauth-foursquare gem gem 'omniauth-foursquare'. When I try to login via foursquare, the callback returns: # uid is nil :( I'm…
Robin
  • 21,667
  • 10
  • 62
  • 85
0
votes
1 answer

User cannot sign in for the second time (using Devise and Omniauth)

I am using Omniauth and Devise. Users using gmail or FB can easily create an account and sign-in and sign-out. When a user signs up with my service (using Devise) as the authentication service the user can sign in once after they create an account…
user663778
  • 381
  • 4
  • 14
0
votes
1 answer

Omniauth route issue related to ruby version?

I have create a rails engine that uses omniauth. In that engine, regardless of running on ruby 1.8.7 or 1.9.2, when I test it using the dummy application, everything works just as fine (using Rails 3.1.3). I can login using any of the providers by…
0
votes
1 answer

Registered user log in for the first time using Facebook - Omniauth

I am following Ryan's instruction on Omniauth here. However, there is a scenario that Ryan didn't cover: User already have an account with us, but they signin with Facebook/Linkedin for the first time. In this case, I would like the user to sign-in…
AdamNYC
  • 19,887
  • 29
  • 98
  • 154
0
votes
2 answers

OmniAuth with Facebook failing in development

does anybody have experience with OmniAuth & Facbeook? I just moved from using a hardcoded app id & secret key in my application, to the ENV['FACEBOOK_APP_ID'] method. I know that these values are correct, since when I try to log in to my app I get…
Avishai
  • 4,512
  • 4
  • 41
  • 67
0
votes
1 answer

Refinerycms issue while integrating with omniauth

I have configured refinerycms along with omniauth for Facebook authentication. for the same I have created "named_routes_overrides.rb" file inside config folder. get 'auth/:provider/callback' => "users/omniauth_callbacks#facebook" and loading the…
0
votes
0 answers

Authenticate user through Devise

I am using Rails 3.1 with Devise 1.4 and Omniauth 0.3. Have created omniauth strategy to authenticate through Facebook and it works nicely. In javascript I am catching an event to know if user is already logged in to…
Edijs Petersons
  • 537
  • 3
  • 6
  • 16
0
votes
1 answer

Why is this spec failing, when the conditions it's testing pass in development?

I have a User model and Authentications model, which is a basic omniauth setup. Essentially, users can sign up through oauth without setting a password. I have a Authentication.is_destroyable? method that returns true if the user has a password or…
aaronrussell
  • 9,389
  • 5
  • 38
  • 62
0
votes
1 answer

Facebook App using Devise is redirecting away from FB Canvas

When the user installs my facebook app for the first time, a facebook logo is displayed, permissions are requested, and then the user is popped out of the iframe. I applied the directions recently (Oct 14th) added to the OmniAuth Overview wiki page…
Liana
  • 286
  • 3
  • 5
0
votes
2 answers

Google API Oauth/Omniauth not verifying my application name or type

I'm using Omniauth to connect to the Google API for Oauth authentication. I am passing xoauth_displayname with my application name and I'm getting the following error on the screen that allows access to the contacts API. The application that…
Phil
  • 271
  • 4
  • 13
0
votes
0 answers

getting invalid_site encountered using omniauth-shopify-oauth2 gem on Rails 7 App

I want to implement a Shopify feature in Rails 7 where a user can fetch other people's Shopify shop information (orders). I created an app in Shopify partners and grabbed the ID and SECRET key of the app. Set both localhost and Ngrok callback URLs…
0
votes
0 answers

Apple SSO Callback returns OAuth2::AccessToken.from_hash `hash` contained more than one 'token' key

I am trying to implement Apple SSO using the omniauth_apple gem in Ruby on Rails. In my devise.rb, i have the following config config.omniauth :apple, Rails.application.credentials.dig(Rails.env.to_sym, :apple_sso, :client_id), '', { scope:…
Kingsley Simon
  • 2,090
  • 5
  • 38
  • 84
0
votes
0 answers

Tryin to get Users to log in to Microsoft Active directory on my rails app using Omniauth gem

i keep getting this from the console Started POST "/auth/microsoft_graph" for ::1 at 2023-08-22 11:57:05 +0100 D, [2023-08-22T11:57:05.241303 #14844] DEBUG -- omniauth: (microsoft_graph) Request phase initiated. without any further response or…
0
votes
0 answers

Omniauth Facebook - Implementation not working in Rails

I keep getting the following page when trying to log in using Facebook in Rails 5.2: Sorry, something went wrong. We're working on getting this fixed as soon as we can. The details to the app were as follows: enter image description here enter image…
0
votes
2 answers

How to stop omniauth client_options from being passed to facebook?

My initializer/devise.rb uses: config.omniauth :facebook, Facebook::APP_ID, Facebook::SECRET, {:scope => Facebook::SCOPE, :client_options => { :ssl => { :ca_file => '/usr/lib/ssl/certs/ca-certificates.crt' }}} and…
Brenden
  • 7,708
  • 11
  • 61
  • 75