Comments (7)
This doesn't seem to be a passport issue. It seems like you are not configuring your oauth callback properly, since you said the code works in your dev environment but not production.
from passport.
看來不是護照問題。看來您沒有正確配置 oauth 回調,因為您說代碼可以在您的開發環境中運行,但不能在生產環境中運行。
But I only changed the environment variables used locally to the ones used for the online website, without modifying any other code.
Moreover, the Google OAuth API settings are also directed to the corresponding URL.
from passport.
The docs explain it.
from passport.
The docs explain it.
Could you please share where in the documentation this is explained? I have been trying to figure out the answer to this issue for almost a month, but still haven't found it. Thank you. : )
from passport.
https://developers.google.com/identity/protocols/oauth2/web-server
from passport.
https://developers.google.com/identity/protocols/oauth2/web-server
I have solved the issue. My Passport Google OAuth 2.0 is not the problem. The issue lies in the deployment on CloudFront, where the cache is not accepting the req.query parameters. This caused an error in the redirected route as it couldn't retrieve the code parameter. Still, thank you very much for your help.
https://developers.google.com/identity/protocols/oauth2/web-server
from passport.
Related Issues (20)
- strategy.authenticate is not a function (passport-facebook)
- documentation does not work. https://www.passportjs.org/tutorials/google/ HOT 3
- Race condition in logout function HOT 10
- Laravel passport HOT 2
- Passport 0.6.0 regenerates session IDs, breaking custom logins
- https://www.passportjs.org/packages/ this page not found HOT 3
- HTTP Strategy abandoned and broken HOT 1
- [Website] Add Keycloak and FusionAuth bearer strategies to website HOT 1
- The authentication middleware deletes the data that were inside the session before authentication, verssion 0.6.0 HOT 3
- TokenError: Code is invalid or expired HOT 2
- TypeError: LocalStrategy is not a constructor HOT 1
- Own session data is overwritten by passport HOT 5
- Facebook authentication no more working HOT 2
- social login with yahoo using passprt js HOT 1
- https://www.passportjs.org/packages/ not found
- Passport Strategy for Facebook doesn't work
- local strategy deserializeUser not be used
- Add Discord Auth Strategy
- Add my Passport Strategies to website: Magalu (Magazine Luiza) and MercadoLivre (ML Brazil)
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 passport.