Skip to content

Commit c1be46e

Browse files
authored
Add Earth Engine scope to OAuth2 credentials
1 parent 4ab4fb4 commit c1be46e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ee-test-with-oauth2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
client_secret=stored["client_secret"],
1212
refresh_token=stored["refresh_token"],
1313
quota_project_id=stored["project"],
14+
scopes=["https://www.googleapis.com/auth/earthengine"]
1415
)
1516

1617
ee.Initialize(credentials=credentials)

0 commit comments

Comments
 (0)