Skip to content

fix formatting #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions src/planet_auth_utils/plauth_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,22 +269,24 @@ def initialize_auth_client_context(
application developer, and are given the highest priority. Internally, the
priority used for the source of any particular configuration values is, from
highest to lowest priority, as follows:
- Arguments to this function.
- Environment variables.
- Values from configuration file.
- Built-in defaults.

- Arguments to this function.
- Environment variables.
- Values from configuration file.
- Built-in defaults.

In constructing the returned Auth context, the following priority is applied, from
highest to lowest:
- A user selected auth profile, as specified by `auth_profile_opt`. This may either
specify a built-in profile name, or a fully custom profile defined by files in
a `~/.planet/<profile name>` directory.
- A user selected OAuth service account, as specified by `auth_client_id_opt` and `auth_client_secret_opt`.
- A user specified API key, as specified by `auth_api_key_opt`
- A user selected auth profile, as determined from either environment variables or config files.
- A user selected OAuth service account, as determined from either environment variables or config files.
- A user selected API key, as determined from either environment variables or config files.
- A built-in default auth profile, which may require interactive user authentication.

- A user selected auth profile, as specified by `auth_profile_opt`. This may either
specify a built-in profile name, or a fully custom profile defined by files in
a `~/.planet/<profile name>` directory.
- A user selected OAuth service account, as specified by `auth_client_id_opt` and `auth_client_secret_opt`.
- A user specified API key, as specified by `auth_api_key_opt`
- A user selected auth profile, as determined from either environment variables or config files.
- A user selected OAuth service account, as determined from either environment variables or config files.
- A user selected API key, as determined from either environment variables or config files.
- A built-in default auth profile, which may require interactive user authentication.

Example:
```python
Expand Down