Expand description
OAuth2 client-credentials authentication against Unity Catalog, with
expiry-aware token caching.
The clock is injected (Clock) so the cache is deterministically testable;
SystemClock is the production implementation. A cached token is reused
until it is within Authenticator’s refresh skew of expiry.
Structs§
- Authenticator
- Acquires and caches an
OAuth2client-credentials bearer token for Unity Catalog. Cheap to share; the token cache is internally synchronised. - System
Clock - Production
Clockreading the system wall clock.
Enums§
- Auth
Error - Authentication failure while acquiring a token.
Traits§
- Clock
- A monotonic wall-clock source in UTC epoch seconds. Injected so token-cache expiry is testable without sleeping.