redirect_uri_mismatch http://127.0.0.1:5000/login/callback
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- flask, python
- Domínio
- authentication, backend
Direção de pesquisa
Comece pelo material de flask-google-login e inspecione como a URL de callback do OAuth é montada a partir da configuração da aplicação e das variáveis de ambiente. Compare esse valor com o domínio e a URI de callback registrados para o cliente OAuth do Google; o problema estará resolvido quando o callback HTTPS implantado for aceito sem redirect_uri_mismatch.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 5.2k
- Forks
- 5.3k
- Merge médio
- 4d 10h
- PRs com merge (30d)
- 10
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de realpython/materials
-
Ruff lints the whole repo Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
realpython/materials#729 ·
-
п Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 1/100
realpython/materials#763 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
realpython/materials#738 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 45/100
realpython/materials#737 ·
-
проект2 Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
realpython/materials#725 ·
Todas as issues de realpython/materials
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
TencentCloud/Octop#1169 · 1 comentário ·
-
🐛 bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
open-compass/opencompass#2655 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
dbt-labs/dbt-agent-skills#166 ·
-
Command palette gates platform-admin items on session roles instead of page.data.isPlatformAdmin Abertaeffort:S P3 refactor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
nightscout/nocturne#1592 ·