redirect_uri_mismatch http://127.0.0.1:5000/login/callback
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- flask, python
- Lĩnh vực
- authentication, backend
Hướng nghiên cứu
Bắt đầu với tài liệu flask-google-login và kiểm tra cách URL callback OAuth được tạo từ cấu hình ứng dụng và các biến môi trường. So sánh giá trị đó với domain và URI callback đã đăng ký cho client Google OAuth; vấn đề được giải quyết khi callback HTTPS đã triển khai được chấp nhận mà không có redirect_uri_mismatch.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 5.2k
- Fork
- 5.3k
- Merge trung bình
- 4 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của realpython/materials
-
Ruff lints the whole repo Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
realpython/materials#729 ·
-
п Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
realpython/materials#763 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
realpython/materials#738 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 45/100
realpython/materials#737 ·
-
проект2 Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
realpython/materials#725 ·
Tất cả issue của realpython/materials
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
punkpeye/mcp-remote#369 ·
-
Mend: dependency security vulnerability untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
CVE-2024-24786 CPE mismatch Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
cisagov/vulnrichment#337 ·
-
bug DUP Reservations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
bcgov/reserve-rec-public#896 ·