admin-sdk report_v1 : Client secret must be for a web or installed app
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- python
- Domínio
- api, authentication
Direção de pesquisa
The traceback points to the quickstart's main.py, where InstalledAppFlow.from_client_secrets_file('credentials.json', SCOPES) rejects a service account key. Check the sample's credential-loading path against the service account flow used in the linked gsuite-exporter tool, and confirm which key type the Reports API call needs. Done means the quickstart authenticates with a service account key and prints report output without the ValueError.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Expected Behavior
in given example code https://developers.google.com/admin-sdk/reports/v1/quickstart/python. We are using service account credentials.
the same service account credentials are working fine in https://github.com/GoogleCloudPlatform/professional-services/tree/master/tools/gsuite-exporter hence we have concluded that its not permission issue with GCP SA or Gsuite admin report API permission.
As per the expected behavior it should print output from report
Actual Behavior
File "main.py", line 28, in main
flow = InstalledAppFlow.from_client_secrets_file('credentials.json', SCOPES)
File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\google_auth_oauthlib\flow.py", line 183, in from_client_secrets_file
return cls.from_client_config(client_config, scopes=scopes, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\google_auth_oauthlib\flow.py", line 156, in from_client_config
'Client secrets must be for a web or installed app.')
ValueError: Client secrets must be for a web or installed app.
Steps to Reproduce the Problem
- create function exactly mentioned in the doc https://developers.google.com/admin-sdk/reports/v1/quickstart/python
- use service account with Gsuite admin api access as per the setup given https://github.com/GoogleCloudPlatform/professional-services/tree/master/tools/gsuite-exporter
- get service account json key and use it in code.
Specifications
- Python version 3.7
- Tested in OS Linux, windows and cloud function
- 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
-
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
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Mantenedores costumam responder em até 1 dia
-
enhancement tooling
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
`read_nexus` entry point points to a function that no longer existsTalvez já em andamento @RubelMozumder assumiu hoje. Abertaannotator bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
FAIRmat-NFDI/pynxtools#876 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retryingTalvez já em andamento @yipinghuang1991 assumiu hoje. Abertacomp/agent P2 type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NousResearch/hermes-agent#156837 ·
Mantenedores costumam responder em até 1 dia