satorbis_kit.auth.environments module¶
OIDC environment configuration.
Defines the known deployment environments (prod, dev) and the credentials associated with each. Resolution order:
environmentparameter passed explicitly to an auth class constructor.
SATORBIS_ENVenvironment variable ("prod"or"dev").
prod— the safe default.
- class satorbis_kit.auth.environments.Environment(value)[source]¶
Bases:
str,EnumNamed 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
Nonethe value of theSATORBIS_ENVenvironment variable is used; if that is also absent,Environment.PRODis returned.