Questions tagged [omniauth-google-oauth2]
59 questions
3
votes
2 answers
How do i hookup a React button to authenticate with Devise Token Auth + OmniAuth
I'm having trouble connecting my Devise Token Auth with a token I get back from google in react.
I'm using this package for the button:
https://www.npmjs.com/package/react-google-login
This is the auth I'm trying to set…

BelgoCanadian
- 893
- 1
- 11
- 31
3
votes
1 answer
Adding more than one organisation domain on GCP
I am using omniauth-google-oauth2 gem in Rails. I have created account on GCP & created project under organisation example.com
The problem is when I created app on GCP and created omni-oauth client-id & client-secret-key, I did setting under, 'Oauth…

ray
- 5,454
- 1
- 18
- 40
2
votes
2 answers
Devise + Omniauth: disable email login when users enable SSO
I have a website that used a normal Devise login with email and password.
Then I have completed this tutorial to add Omniauth / SSO:
https://github.com/heartcombo/devise/wiki/OmniAuth:-Overview
Now when some users choose to use "Sign in with Google"…

collimarco
- 34,231
- 36
- 108
- 142
2
votes
1 answer
Rails google-oauth2 404 - "Not found. Authentication passthru."
When attempting to sign in with Google Oauth, I encounter a 404 error "Not found. Authentication passthru." This worked just a month ago on my site, and I have not changed anything that should have impacted authentication. I've seen several other…

rcrusoe
- 441
- 2
- 4
- 14
2
votes
3 answers
Rails Google Oauth2 Working Locally But Not Remotely
I've been struggling with this error for a while now, and haven't quite figured out what I've got wrong.
My site can be found here: https://chaynring.com
My issue: when running the server locally, I'm able to authenticate via Google Oauth2 without…

gr1zzly be4r
- 2,072
- 1
- 18
- 33
2
votes
2 answers
Using omniauth-google-oauth2 in rails API
I'm trying to implement login from google functionality in my Rails API.
I added this line to my device.rb
config.omniauth :google_oauth2, Rails.application.credentials.dig(:google, :google_client_id),
Rails.application.credentials.dig(:google,…

Humayun Naseer
- 440
- 7
- 18
2
votes
1 answer
Google API - OAuth 2.0 - trying to get AccessToken using curl
Trying to get AccessToken using curl but getting error as
"https://accounts.google.com/o/oauth2/token: No such file or directory"
Can someone help what i am doing wrong?
Mainly, am wondering if I am setting up the client secret correctly, though I'm…

Preeti thapl
- 23
- 3
2
votes
0 answers
RuntimeError (No resource_class found)
Creating a Rails API using Devise_token_auth gem and trying to make it omniauthable to be able to login through google and facebook. Following this :- github. This error has been registered with no solution yet Here .
My error :-
`Started POST…

Aman Relan
- 373
- 1
- 2
- 12
2
votes
1 answer
Rails google_omniauth2 'error: redirect_uri_mismatch'
I have been attempting to add google auth to my signup page and have followed the steps in the guide but once I sign in to my google account, I get redirected to localhost:3000/# and have the following error in my console:
E,…

James Chou
- 41
- 1
- 6
2
votes
1 answer
Is The Rails Gem 'omniauth-google-oauth2' Secure / How Does request.env work?
I've implemented the 'omniauth-google-oauth2' gem in my rails/devise app using the example pattern given on https://github.com/zquestz/omniauth-google-oauth2. However, I'm concerned that this pattern is not secure.
I have attempted to review the…

Corey
- 590
- 1
- 5
- 15
1
vote
3 answers
How do you add a web App to your Google Cloud console?
I need to create a development Google OAuth 2.0 Client ID for my app. I see that you cannot have an origin of http in the list of allowed origins. The error states...
Invalid Origin: This app has a publishing status of "In production".
URI must…

John Livermore
- 30,235
- 44
- 126
- 216
1
vote
0 answers
Force password submit on Google even when the user is already connected
I'm using https://github.com/zquestz/omniauth-google-oauth2 on a project.
I want to force the password re-submission every time a user tries to login through a Google OAuth2 roundtrip.
The problem is that if the account is already connected, it…

Andrea Salicetti
- 2,423
- 24
- 37
1
vote
0 answers
Authentication failure! invalid_credentials: OAuth2::Error, invalid_grant: Bad Request, Ruby on Rails
I got stranger problem when deploy my ruby on rails app on docker
When I run localhost all work perfectly, but when deploy on docker I got this error.
I using few days for resolving this but unsuccessful, can anyone help me resolved this…

MasterLuV
- 396
- 1
- 17
1
vote
2 answers
I cant place my new middleware where I want to place it in the rack stack
I wrote a new middleware called RescueAuthTokenFromOmniauth, which rescues an exception created by either OmniAuth::Strategies::GoogleOauth2 or OmniAuth::Strategies::Facebook. Ideally, I want to place RescueAuthTokenFromOmniauth just before the…

Luis César
- 11
- 2
1
vote
1 answer
How to send sign in info to frontend after successful Oauth2 authorization in devise_token_auth?
I'm using devise_token_auth for Email and Google Oauth2 based authentication(used omniauth-google-oauth2 gem for this). I've successfully managed to store sign in info of the user signing up/in through Google Oauth2 flow. The info…

Masroor
- 1,484
- 3
- 14
- 23