satorbis_kit.auth.environments module

OIDC environment configuration.

Defines the known deployment environments (prod, dev) and the credentials associated with each. Resolution order:

  1. environment parameter passed explicitly to an auth class constructor.

  2. SATORBIS_ENV environment variable ("prod" or "dev").

  3. prod — the safe default.

class satorbis_kit.auth.environments.Environment(value)[source]

Bases: str, Enum

Named deployment environments supported by the auth layer.

DEV = 'dev'
PROD = 'prod'
satorbis_kit.auth.environments.get_env_config(environment: Environment | None = None) tuple[source]

Return (Environment, _EnvConfig) for the resolved environment.

Parameters:

environment – Explicit environment selection. When None the value of the SATORBIS_ENV environment variable is used; if that is also absent, Environment.PROD is returned.