redirect_uri_mismatch http://127.0.0.1:5000/login/callback
維護者通常 5 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- flask, python
研究方向
從 flask-google-login 的相關資料開始,檢查 OAuth 回呼 URL 如何根據應用程式設定和環境變數組合而成。將該值與為 Google OAuth 用戶端註冊的網域和回呼 URI 進行比較;當已部署的 HTTPS 回呼能夠被接受且不出現 redirect_uri_mismatch 時,問題即獲得解決。
由索引模型根據 Issue 內容生成。
描述
I've really enjoyed the content. Found the blog re "Create a Flask Application With Google Login"
https://realpython.com/flask-google-login/
https://github.com/realpython/materials/blob/master/flask-google-login/
I got to running the app and this error.
Error: redirect_uri_mismatch
The redirect URI in the request, http://127.0.0.1:5000/login/callback, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/310636517232-hh287vg31jbjbqe0hguc2ahmtqcrbr13.apps.googleusercontent.com?project=310636517232
I have setup nginx to redirect a domain to my flask server. Loads on a https page with a valid cert generated by certbot.
have configured my google app with my domain url.
have a working route at mydomain/login/callback
I can't see where http://127.0.0.1:5000 is set in my code. I did find old stackexchange references to setting the redirect instead of accepting the default (java examples not python).
The as published demo with redirection to localhost was working for me previously. (have deleted the previously working with localhost google app and created new google app, updated environment variables etc. exited shell, restarted ubuntu etc.
ideas?
- 主要語言
- Jupyter Notebook
- 星號
- 5.2k
- 分支
- 5.3k
- 平均合併
- 5 天 4 小時
- 30 天內合併 PR
- 15
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
realpython/materials 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
realpython/materials#729 ·
維護者通常 5 天內回覆
-
п未關閉
難度 5/5 一週以上 新手友好度 1/100
realpython/materials#763 ·
維護者通常 5 天內回覆
-
難度 1/5 1 小時以內 新手友好度 55/100
realpython/materials#738 ·
維護者通常 5 天內回覆
-
難度 1/5 1 小時以內 新手友好度 45/100
realpython/materials#737 ·
維護者通常 5 天內回覆
-
проект2未關閉
難度 5/5 一週以上 新手友好度 15/100
realpython/materials#725 ·
維護者通常 5 天內回覆
查看 realpython/materials 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
PrestaShopCorp/ps_accounts#666 ·
-
needs-ac
難度 2/5 1-3 小時 新手友好度 78/100
Ikalus1988/MisakaNet#2845 ·
維護者通常 1 天內回覆
-
area:ai-suggestions bug P0 security
難度 2/5 1-3 小時 新手友好度 84/100
uttrflow/uttrflow-swift#5182 ·
維護者通常 1 天內回覆
-
account-pool bug
難度 2/5 1-3 小時 新手友好度 76/100
lidge-jun/opencodex#6571 · 1 則留言 ·
維護者通常 1 天內回覆
-
seccomp: goToNative values for loong64 and mipsle have no matching nativeToSeccomp key可能已有人在做 @ricardobranco777 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆