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

Error: Request had insufficient authentication scopes. #84

Open
yalegria opened this issue Nov 12, 2021 · 2 comments
Open

Error: Request had insufficient authentication scopes. #84

yalegria opened this issue Nov 12, 2021 · 2 comments

Comments

@yalegria
Copy link

Expected Behavior

Google Sheets API Quickstart not working after configuring and following instructions. I should be seen the list of Majors and I got an error "Error: Request had insufficient authentication scopes.".

Actual Behavior

It displays an error describe above.

JavaScript Console Output

Capture

Specifications

  • Chrome or Firefox
  • Windows
@yalegria
Copy link
Author

Also, I can only select "External" user on the Consent Screen and added myself to the Test users.

@yalegria
Copy link
Author

I got this to work but I would like to start all over from scratch (probably creating a new brand app in GCP) to ensure efficiency of the procedure.

This is what I did:

  • Instead of trying to read a data from the quickstart demo, I did create my own spreadsheet under the gmail account I am using.
  • Then I modified the quickstart javascript code to point to my sheet ID, specified new range based on dummy data.
  • Signed out of the current session (!IMPORTANT) by pressing Sign out button on app.
  • Authorize again using button on app, and indicated what the app will allow to do: reading spreasheets, etc.
  • After continuing consent screen, page displays my dummy data.
  • I brought back quickstart settings.
  • Reload page and demo data displays on page.

I think the issue was that the current session was holding old authentication data, and it needed to re-authenticate (sign out) in order to grab new authentication data.

Again, I need to redo this once I get to a good point.

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

1 participant