Comments (6)
This is caused by a misconfiguration of your app with google.
Head to:
https://code.google.com/apis/console
Then make sure you have an https redirect url.
from omniauth-google-oauth2.
That's what I thought, but then how does the request get set in the first place? I've tried both ways in my Google app, but only http works. The request sends a http redirect_uri in both cases, never https. I'm sure I'm missing something simple here.
from omniauth-google-oauth2.
Maybe it matters where I send the request from? I'm pretty sure I've tested that too, but maybe not, since it only makes sense in production.
from omniauth-google-oauth2.
You can always use the following in an initializer:
OmniAuth.config.full_host = "https://yourdomain.com"
from omniauth-google-oauth2.
So I assume you're using: omniauth_authorize_path to generate the url?
from omniauth-google-oauth2.
yes:
user_omniauth_authorize_path(:google_oauth2)
I will try that full_host config as well, thank you!
from omniauth-google-oauth2.
Related Issues (20)
- Sinatra doesn't know this ditty GET /auth/google_oauth2 HOT 1
- v1.1.0 problem HOT 4
- How do I delete a credential when user revokes access? HOT 1
- JWT::DecodeError, Invalid segment encoding when using access_token HOT 9
- Force password submit on Google even when the user is already connected HOT 2
- the field refresh token is blank on credentials in oauth process HOT 4
- No option for force-reauthentication HOT 3
- 400: redirect_uri_mismatch only in production environment HOT 2
- not working collback with params HOT 1
- Authentication failure! csrf_detected HOT 7
- Custom redirect_uri prevents callback phase from starting HOT 4
- How to access group information HOT 3
- Deprecated library documentation
- Restore session without prompting user to login again
- [Question] send id_token from google js api credential to callback HOT 3
- Support for customized tenant provider
- Picture URL in `raw_info` no longer contains `photo.jpg`
- Can't Access Refresh Token / Can't Bypass Refresh Flow HOT 1
- Can't override the redirect_uri
- GET /oauth2/v3/tokeninfo exposes access_token in traces/logs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omniauth-google-oauth2.