Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue when tried to do clasp login with service account #965

Open
nisjain-conga opened this issue Jul 3, 2023 · 1 comment
Open

Comments

@nisjain-conga
Copy link

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

Login with clasp with service account key

Actual Behavior

Logging in locally…

Authorizing with the following scopes:
https://www.googleapis.com/auth/script.container.ui
https://www.googleapis.com/auth/documents
https://www.googleapis.com/auth/script.webapp.deploy

NOTE: The full list of scopes your project may need can be found at script.google.com under:
File > Project Properties > Scopes

Error retrieving access token: TypeError: Cannot destructure property 'client_id' of 'options.creds.installed' as it is undefined.

Steps to Reproduce the Problem

Create service account into GCP
Generate keys & download it
npx @google/clasp login --creds generated-key.json

Specifications

  • Node version (node -v): v16.14.0
  • Version (clasp -v): 2.4.2
  • OS (Mac/Linux/Windows): Windows
@oleksandrTSY
Copy link

Seems there is no way to use service account with clasp ?
https://developers.google.com/apps-script/api/concepts
Can someone approve it to not waste time of other who are interesting in this topic ?
Very strange approach, mostly only service accounts available rather then 'main' account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants