django-gsheets
django-gsheets copied to clipboard
Scope has changed from "https://www.googleapis.com/auth/spreadsheets"
@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
- From local env
- using ngrok
- ngrok call back added to google auth
- navigate to https://####.ngrok.io/gsheets/authorize/
- redirected to https://accounts.google.com/o/oauth2/auth/####
- "Sign in with Google" choose you account
- Select allow "####.ngrok.io wants to access your Google Account"
- Up pops the error
Any help or clues would be most welcome.
cheers
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",
],
}