redirect_uri_mismatch http://127.0.0.1:5000/login/callback
まだ誰も着手していません。
評価
- 難易度
- 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
- 平均マージ
- 4日 10時間
- マージ済み PR(30日)
- 10
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
realpython/materials のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
realpython/materials#729 ·
-
п オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
realpython/materials#763 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
realpython/materials#738 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
realpython/materials#737 ·
-
проект2 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
realpython/materials#725 ·
realpython/materials の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
punkpeye/mcp-remote#369 ·
-
Mend: dependency security vulnerability untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
cisagov/vulnrichment#337 ·
-
bug DUP Reservations
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bcgov/reserve-rec-public#896 ·