I can't authorize gmail api in ubuntu
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 22/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- python, ubuntu
- Domínio
- authentication
Direção de pesquisa
The report concerns the Gmail quickstart sample for Python in this repo, run on a headless Ubuntu machine. Start by reading that sample's OAuth flow to see how it obtains credentials, then reproduce the localhost redirect failure over SSH. The payload does not say what change is wanted, so a newcomer would first need to ask a maintainer whether the fix is a docs note or a code change.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
https://developers.google.com/gmail/api/quickstart/python?authuser=1
I take the necessary steps from this link and download the credentials.json file to my workspace. then i run the python code. and it gives me a printout:
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=28xxxx1398-c8o09oxxxxxhksl11rn6h0xxxjb84.apps.googleusercontent.com&redirect_uri=httxxx36865%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly&state=JbxxxxxteGYZD&access_type=offline
I go to the link here and choose my gmail account, but localhost redirects me and does not authorize me.
I use ubuntu and there is no user interface. I can only connect to the terminal remotely. I enter the link given for me on my windows computer.
localhost error
https://i.stack.imgur.com/60QaU.png
- Python version (
3.6) - OS (Linux)
- Linguagem predominante
- Python
- Estrelas
- 1.4k
- Forks
- 917
- Merge médio
- 3min
- PRs com merge (30d)
- 1
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
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 googleworkspace/python-samples
-
ايقاف البحث الأمنTalvez livre de novo @sqrrrl assumiu há 400 dias e não há nenhum pull request aberto. Aberta
googleworkspace/python-samples#2434 · 1 responsável ·
-
Slow Uploads using Google Drive API with PythonTalvez livre de novo @sqrrrl assumiu há 740 dias e não há nenhum pull request aberto. Aberta
googleworkspace/python-samples#1852 · 1 comentário · 1 responsável ·
-
403 error from google after a few successful runs of my codeTalvez livre de novo @vinay-google assumiu há 912 dias e não há nenhum pull request aberto. Aberta
googleworkspace/python-samples#1424 · 1 responsável ·
-
How to see the progress of files which is getting uploadedTalvez livre de novo @vinay-google assumiu há 928 dias e não há nenhum pull request aberto. Aberta
googleworkspace/python-samples#1404 · 1 responsável ·
-
Phyton SamplesTalvez livre de novo @PierrickVoulet assumiu há 975 dias e não há nenhum pull request aberto. Aberta
googleworkspace/python-samples#1279 · 1 responsável ·
Todas as issues de googleworkspace/python-samples
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 2 dias
-
Reference check: findingsAbertaaudit-reference-check
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
site-bug triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
canonical/paas-charm#407 · 1 comentário ·
Mantenedores costumam responder em até 5 dias