hydromodpy.core.auth#

Authentication and authorisation backends for HydroModPy.

Defines AuthBackend, a structural typing.Protocol that every concrete backend implements (e.g. LocalAuthBackend).

V1 ships only a permissive LocalAuthBackend that reports the current OS user and allows every operation. Real backends (keyring-backed secrets, IAM roles, SSO) are V2 work; the abstraction exists now so the catalog layer can wire callsites without later refactor.

Modules

backends

Concrete authentication backends bundled with V1.

protocol

Structural protocol every authentication backend honours.

selection

Auth backend selection driven by the HMP_AUTH_BACKEND env var.