Stay organized with collections
Save and categorize content based on your preferences.
python client library only
Prompts you to authorize access to Earth Engine via OAuth2.
Directs you to a authentication page on the Code Editor server at
code.earthengine.google.com/client-auth.
You will need to pick a Cloud Project to hold your developer configuration
(OAuth Client). This can be the same Cloud Project that you already use in
the Code Editor, if you have not set up an OAuth client on the project already.
The setup page also lets you choose to make the notebook access read-only.
This is recommended if you are running a notebook with code that you didn't
write and which may be malicious. Any operations which try to write data
will fail.
The credentials obtained by ee.Authenticate() will be written to a persistent
token stored on the local machine. ee.Initialize() will automatically
use the persistent credentials, if they exist. To use service account
credentials instead, see
this guide.
One of:
notebook - Use notebook authenticator.
Default for web notebooks, described above.
gcloud - Use gcloud. Default for
command
line calls.
appdefault - Read GOOGLE_APPLICATION_CREDENTIALS.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-04 UTC."],[[["`ee.Authenticate()` initiates an OAuth2 authorization process, prompting users to grant access to their Earth Engine resources."],["Users are directed to a setup page to select a Cloud Project for their developer configuration and optionally enable read-only access for enhanced security."],["Authentication credentials are stored persistently on the local machine for automatic use in subsequent sessions using `ee.Initialize()`."],["The `auth_mode` parameter allows for specifying different authentication methods including 'notebook', 'gcloud', and 'appdefault'."]]],["The Python client library uses OAuth2 for Earth Engine access, directing users to an authentication page to select a Cloud Project. Users can opt for read-only access for enhanced security. `ee.Authenticate()` obtains credentials, saved locally for persistence, and `ee.Initialize()` automatically uses them. Alternative service account credentials can be used. The function `ee.Authenticate` accepts arguments like `authorization_code`, `quiet`, `code_verifier`, and `auth_mode` to control authentication behavior.\n"]]