Skip to content

yggdrasil.http_.authorization

authorization

HTTP authorization providers for yggdrasil.io sessions and requests.

Authorization

Bases: ABC

Contract for objects that produce an HTTP Authorization header value.

Concrete subclasses own credential storage, refresh logic, and any token cache. Callers only need :attr:authorization — the fully-formed header value (e.g. "Bearer <token>") ready to drop into :class:yggdrasil.io.headers.Headers or :class:PreparedRequest.authorization.

authorization abstractmethod property

authorization: str

Return the value for the HTTP Authorization header.