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 gowalla strategy error: comparison of String with Bignum failed

as far as I can get gowalla auth code response contains both expires_at and expires_in but expires_at is not valid date string so it throws error while comparing dates any idea to hack omniauth or gowalla strategy would be very welcome!!! rails…
altuure
  • 193
  • 2
  • 9
0
votes
0 answers

always redirecting to fallback location when using -> redirect_back fallback_location: root_path always

I'm using omniauth for fb & google logins. However, instead of redirect to page with the login, it re-directs to fallback page all the time. When I check request.referrer, it is blank. request.original_url is the callback URL for the login.…
0
votes
1 answer

Full backtrace for Omniauth error in testing enviroment

When running an automated test with a omniauth mock, I get: Run options: -b --seed 58490 # Running: D, [2023-02-14T18:24:28.454047 #7345] DEBUG -- omniauth: (github) Setup endpoint detected, running now. E, [2023-02-14T18:24:28.457195 #7345]…
Julien Lamarche
  • 931
  • 1
  • 12
  • 29
0
votes
0 answers

Rails OmniAuth azure-v2

OK i'm not really a ROR person but I'm trying to modify an existing app (forked) from https://github.com/adamcooke/staytus there's an /admin page which right now brings you to a haml login form with a username/password box. What I'm attempting to do…
Tony
  • 8,681
  • 7
  • 36
  • 55
0
votes
1 answer

Google differentiates between www.domain.com and domain.com with Omniauth/OpenID

I have Facebook, Aol, Yahoo and My OpenID working correctly with Omniauth using either www.my-domain.com and my-domain.com for the same account. Sadly, Google treats these separately and if after registering with www.my-domain.com and then trying to…
ants
  • 1,097
  • 1
  • 7
  • 13
0
votes
2 answers

Devise + omniauth routing problem on Heroku

I've been pulling my hair for hours on this one... I have a Devise and omniauth setup that allows users to log in with their Facebook accounts. I am using the following gem versions: Installing devise (1.4.7) Installing oauth2 (0.4.1) Installing…
TK Gospodinov
  • 8,302
  • 6
  • 24
  • 25
0
votes
0 answers

Rails - Azure AD SSO error - Not found. Authentication passthru

I am trying to setup Azure AD SSO for my Rails app. I have followed all the steps from this documentation. When I click on the Login link, I see an error: URL - http://localhost:3000/users/auth/microsoft?prompt=select_account Message - Not found.…
0
votes
0 answers

GithubApp installation from marketplace causes CSRF error

Usually, when a Github app installation is initialized from my application, the omniauth gem initiates the request phase, sets the state param and the cookie and redirects users to the installation URL. After installation, the request is sent back…
Lidia Mokevnina
  • 115
  • 1
  • 8
0
votes
3 answers

omniauth: (linkedin) Authentication failure! invalid_credentials

Request phase initiated. Started GET "/users/auth/linkedin/callback?code=...&state=..." for 127.0.0.1 at 2022-09-14 20:50:20 +0200 D, [2022-09-14T20:50:20.537126 #37240] DEBUG -- omniauth: (linkedin) Callback phase initiated. E,…
0
votes
0 answers

Ruby omniauth-ebay-oauth gem only getting user consent...not auth token

I had no problem getting omniauth-ebay-oauth (https://github.com/evilmartians/omniauth-ebay-oauth) working with Devise, but when Ebay hits the callback I've got a code, but I'd expect the gem to also exchange the code for an auth_token. Is there…
Jeff
  • 11
  • 4
0
votes
1 answer

Rails & MiniTest IntegrationTests - session not accessible after redirect

Obviously Rails has deprecated ControllerTest in favour of IntegrationTests. I want to test behaviour based on logged in users. I can't set the current user directly and must use the app's login flow first before testing the route & behaviour of…
andyroberts
  • 3,458
  • 2
  • 37
  • 40
0
votes
0 answers

Rails 7 api-only w/ Devise, Omniauth Google Oauth returns current_user nil

I'm having difficult implementing the full flow for Omniauth Google and Rails API. I've got the "authorization code" from my front end app from Google and have sent it to the callback URL for omniauth on the backend API server. That process…
jasonwaiting
  • 33
  • 1
  • 3
0
votes
1 answer

How do I prevent calls to the Facebook API for non-first sessions?

My app authenticates users through Facebook with OmniAuth and it works fine but every time a user has to create a session and sign in, the request to Facebook takes up to a minute because it is calling a lot of information through the API. How do I…
Simpleton
  • 6,285
  • 11
  • 53
  • 87
0
votes
0 answers

omniauth - session empty after auth token returned

I'm hoping someone can help me figure out what's going wrong with an auth I'm adding into an app. The app itself uses normal authentication (username/password) using devise. Once a user is logged in, they are supposed to be able to connect to their…
PaReeOhNos
  • 4,338
  • 3
  • 30
  • 41
0
votes
1 answer

Can't access environment variable from Rails 3.1 initializer

I have an initializer file that looks like this: Rails.application.config.middleware.use OmniAuth::Builder do provider :facebook, '000000000000000', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' end And my app works. I don't want to hardcode…
1 2 3
99
100