django-gsheets icon indicating copy to clipboard operation
django-gsheets copied to clipboard

Scope has changed from "https://www.googleapis.com/auth/spreadsheets"

Open parrajeremy opened this issue 4 years ago • 1 comments

@steinbachr

Warning at /gsheets/auth-success/ Scope has changed from "https://www.googleapis.com/auth/spreadsheets" to "https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/userinfo.profile openid https://www.googleapis.com/auth/userinfo.email".

Steps to recreate

  1. From local env
  2. using ngrok
  3. ngrok call back added to google auth
  4. navigate to https://####.ngrok.io/gsheets/authorize/
  5. redirected to https://accounts.google.com/o/oauth2/auth/####
  6. "Sign in with Google" choose you account
  7. Select allow "####.ngrok.io wants to access your Google Account"
  8. Up pops the error

Any help or clues would be most welcome.

cheers

parrajeremy avatar Jan 08 '21 03:01 parrajeremy

You can change with OAuth scopes are requested to make it work. Just add the following to your Django config:

GSHEETS = {
    'SCOPES': [
        "https://www.googleapis.com/auth/spreadsheets",
        "openid",
        "https://www.googleapis.com/auth/userinfo.email",
    ],
}

ageitgey avatar Apr 29 '21 15:04 ageitgey