All users of the HERE Platform must obtain authentication and authorization credentials.
For the available authentication options, see the Identity & Access Management Developer Guide.
The HERE Data SDK for Python supports the following methods to provide your credentials:
Place the credentials file into:
The HERE platform generated app credentials should look similar to the example below:
here.user.id = <example_here> here.client.id = <example_here> here.access.key.id = <example_here> here.access.key.secret = <example_here> here.token.endpoint.url = <example_here>
If you want to access catalogs or other resources with a dedicated project scope you need to add a line like this to the credentials.properties file:
here.token.scope = <project_hrn>
You can specify any credentials file as an alternative to the one in the default location. An error is raised if the specified file is not present, or if the file is not formatted properly.
platform_cred = PlatformCredentials.from_credentials_file("<Path_to_file>") platform_obj = Platform(platform_cred)
You can override the default credentials by assigning values to the following environment variables:
HERE_USER_ID HERE_CLIENT_ID HERE_ACCESS_KEY_ID HERE_ACCESS_KEY_SECRET HERE_TOKEN_ENDPOINT_URL
The environment variable
If you want to access catalogs or other resources with a dedicated project scope you can define that scope by setting following environment variable:
platform_cred = PlatformCredentials.from_env()