redirect_uri_mismatch http://127.0.0.1:5000/login/callback
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- flask, python
- Área
- authentication, backend
Línea de trabajo
Comience con el material de flask-google-login e inspeccione cómo se ensambla la URL de callback de OAuth a partir de la configuración de la aplicación y las variables de entorno. Compare ese valor con el dominio y la URI de callback registrados para el cliente OAuth de Google; el problema se resuelve cuando el callback HTTPS desplegado se acepta sin redirect_uri_mismatch.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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?
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 5.2k
- Forks
- 5.3k
- Merge medio
- 4 d 10 h
- PR fusionados (30 d)
- 10
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de realpython/materials
-
Ruff lints the whole repo Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
realpython/materials#729 ·
-
п Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 1/100
realpython/materials#763 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100
realpython/materials#738 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 45/100
realpython/materials#737 ·
-
проект2 Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
realpython/materials#725 ·
Todos los issues de realpython/materials
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
sipyourdrink-ltd/bernstein#6191 ·
-
security severity:low track:open-source
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[addtool] DeepZero Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
gwen001/offsectools_www#2055 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
WalletConnect/actions#112 ·