Skip to content

Avoid password auth in odata_basics.ipynb #12

Description

@soxofaan

odata_basics.ipynb has this snippet to do auth:

# Provide CDSE account credentials - replace with your own data
import os

username = os.environ["CDSE_USERNAME"]
password = os.environ["CDSE_PASSWORD"]

# Get authentication token
import certifi

auth_server_url = "https://identity.dataspace.copernicus.eu/auth/realms/CDSE/protocol/openid-connect/token"
data = {
    "client_id": "cdse-public",
    "grant_type": "password",
    "username": username,
    "password": password,
}

We should avoid promoting password grant like this.
And, while os.environ is used, it is a slippery slope for users to just put their main CDSE password directly in source code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions