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

sign-in-with-twitter is not working on Heroku - Rails 3.1

I am using the oa-auth and twitter gem, via this example: https://github.com/sferik/sign-in-with-twitter When I try to sign in with the button, this is what I see in my logs on Heroku, even though this works perfectly in development: Started GET…
0
votes
0 answers

Getting CSRF authentication tokens to work using omniauth-google-oauth2 and repost libraries in Rails app

Problem Outline We have a Rails app that uses Google OAuth for login/authentication. We're trying to update omniauth to ~> 2 because that fixes security advisory CVE-2015-9284. We've followed the instructions for the upgrade on the omniauth github…
0
votes
0 answers

Unable to get LinkedIn access token when using devise and omniauth-linkedin-oauth2

I am using devise and omniauth-linkedin-oauth2 to sign in users and I am trying to get some basic API access at the time of the login. User gets logged in properly. But when I try to use the same code from callback to get an access token, that…
FuzenDev
  • 11
  • 1
0
votes
0 answers

OAuth LinkedIn sign in with Devise on Rails 7

implementing oauth sign in with linkedin on my rails app with devise but when I clicked on sign in with linkedin, it redirects to a linkedin page saying: Bummer, something went wrong. Here's what I have done so far. I added those gems into my…
0
votes
1 answer

How to include CSRF token in single page app in ruby on rails

I'm building a single page application front end with react that talks to a ruby on rails backend. I'm using devise and omniauth for user authentication and I'm trying to sign in with my google account. I followed the instructions here…
StaticMethod
  • 593
  • 1
  • 7
  • 20
0
votes
1 answer

Rails + omniauth-google-oauth2 + rspec test makes wrong number of arguments

omni_auth_helper.rb module OmniAuthHelper def set_omniauth OmniAuth.config.test_mode = true OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({ :provider => "google_oauth2", :uid => "123456789", …
sksmsWKd
  • 155
  • 2
  • 12
0
votes
0 answers

Rails API + engine + omniauth + session/flash

I have a tricky scenario here and I cannot find the solution by myself yet. This is perfectly working in production (no ngrok). Here is the setup. Rails API (6.1.6) 2 engines mounted via subdomain Main API - MainAPI -> api.lvh.me:3003 Temp front…
brcebn
  • 1,571
  • 1
  • 23
  • 46
0
votes
1 answer

OmniAuth: redirect to page which requires authentication instead of the one which user came from

There are some pages in my app which require authentication with linked in. I use before filter to redirect user to /auth/linked_in if s/he is not already authenticated. I want that after authentication user should be redirected to page which…
rubish
  • 10,887
  • 3
  • 43
  • 57
0
votes
0 answers

ActionController::InvalidAuthenticityToken in rails 6

I've setup a sso-provider and a sso-client in rails 7. Thats working fine. But when I want to create and existing rails 6 project as a sso-client, there is a problem. In rails 7 sso-client I have used repost to redirect, thats working as normal…
0
votes
0 answers

Any way to debug a rails omniauth implementation (specifically github auth)

I've implemented omniauth to enable github login on the Rails app I'm working on. I'm using Devise for login/authentication. The omniauth implementation works locally, with client_id and client_secret set as .env variables. They're passed to devise…
Sam Nixon
  • 1
  • 3
0
votes
0 answers

Gitlab - Omniauth ldap sync users

I'm setting up OmniAuth on my self-managed Gitlab. I have a SAML provider setup on Authentik. The SSO is working correctly. I would like to have all users in the Authentik managed group to be in the Gitlab users database. I currently have to wait…
0
votes
1 answer

Omniauth is not directing to FB but rather my root? /

in my view I have: <%= link_to "Sign in with Facebook", user_omniauth_authorize_path(:facebook) %> Which renders with the link: http://localhost:3000/users/auth/facebook Problem is when I click that link it loads directly to: Started GET "/" for…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
0
votes
0 answers

Getting SSL_connect returned=1 certificate verify failed (self signed certificate) while authenticating using omniauth-google-oauth2

I am using Rails 7.0.4 and gem 'omniauth-google-oauth2', '~> 1.1', '>= 1.1.1' After the consent screen of Omniauth Google, when it's responding to my local server, I am getting this error for the object image. And the weird thing is, sometimes it's…
Piyush Chaudhary
  • 183
  • 2
  • 12
0
votes
0 answers

ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity.) in Rails 7 while adding omniauth-google-oauth2

Following this video link - https://youtu.be/CnZnwV38cjo for adding the omniauth-google-oauth2 but after doing the exact things as suggested, still getting the ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity.)…
0
votes
1 answer

Sinatra with Warden & Omniauth

Need some high level advice before putting the pieces of an app together.. I'm not entirely sure how these three pieces should fit together. My understanding: I have the user log in using omniauth and get redirected to a callback, where I can get…
minikomi
  • 8,363
  • 3
  • 44
  • 51