google / clasp

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

Access blocked: authorisation error when running clasp login #972

Closed rafa-guillermo closed 1 year ago

rafa-guillermo commented 1 year ago

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

Expected Behavior

Auth window should pop up, allowing to authorise application to run on my behalf

Actual Behavior

Access blocked: authorisation error

If you are a developer of clasp – The Apps Script CLI, see error details.

image

Error 500: internal_failure

Error details shows:

Request details: access_type=offline response_type=code redirect_uri=http://localhost:45461 client_id=1072944905499-vm2v2i5dvn0a0d2o4ca36i1vge8cvbn0.apps.googleusercontent.com scope=https://www.googleapis.com/auth/script.deployments https://www.googleapis.com/auth/script.projects https://www.googleapis.com/auth/script.webapp.deploy https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/service.management https://www.googleapis.com/auth/logging.read https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/cloud-platform openid

Able to reproduce this on multiple Google Workspace accounts

Steps to Reproduce the Problem

  1. Run clasp login

Specifications