class CatalogTokenProvider

Fetches and keeps the catalog access token.

Strategies, selected by CatalogCredential#auth_method: none -> no Authorization header bearer_static -> the stored secret IS the Bearer token oauth2_client_credentials -> POST {endpoint}{token_path}, grant client_credentials (Polaris) oauth2_token_exchange -> RFC 8693 at an EXTERNAL token server (Dremio: a PAT is the subject token; the catalog at :8181 and the token server at :9047 differ)

Derived tokens are cached with a safety margin before expiry and NEVER persisted - only the encrypted secret is. A stale cached token surfacing as HTTP 401 mid-sync is handled by refresh!.