google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Provide a working solution for --no-localhost for service accounts #956

Open bdetry opened 1 year ago

bdetry commented 1 year ago

We use Appscrpit more and more every week, we have unit tests working, we also write it with typescript via an IDE. CI is configured, but it always breaks, workarounds are not 100% functional for us.

A working machine-to-machine login could really boost the way we use this solution.

Expected Behavior

Be able to runclasp login on a CI with service account credential files.

Actual Behavior

Feature is broken.

TrevorDecker commented 1 year ago

I am also seeing this problem. the error I receive is You can’t sign in because clasp – The Apps Script CLI sent an invalid request. You can try again later, or contact the [developer](https://accounts.google.com/) about this issue. [Learn more about this error](https://support.google.com/accounts/answer/12379384) If you are a developer of clasp – The Apps Script CLI, see [error details](https://accounts.google.com/). Error 400: invalid_request

I am observing this on both mac os and debian linux

leetutoring commented 7 months ago

I believe I'm having the same issue having to do with OOB support. I can login using localhost, but this won't work on my remote machine on which I do all my development. When I try to make clasp login --no-localhost work, it fails with the above error message.