google / clasp

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

Attempting setting up the local environment to clasp run , error when clasp login --creds creds.json #924

Closed freddieventura closed 2 years ago

freddieventura commented 2 years ago

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

Expected Behavior

Trying to set up a clasp run local environment following the example

I have done everything till Step 5 clasp login --creds creds.json , but I get this error message.

In the GCP project I have tried with it with Publishing status on testing and had an error , now I am trying publishing it. Upon pasting the link that I have been given in clasp login creds creds.json I get the following error

Actual Behavior

Error 400: invalid_request

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.

You can let the app developer know that this app doesn't comply with one or more Google validation rules.
The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.
If you’re the app developer, make sure that these request details comply with Google policies.

    redirect_uri: urn:ietf:wg:oauth:2.0:oob

Steps to Reproduce the Problem

1. 1.

Specifications

freddieventura commented 2 years ago

There is an step missing after Step 4 you need to clarify that the App Publishing Status has to be setted to Testing and the user needs to add himself as a test user with add Users entering the email address there.