Expand description
The top-level auth: provider catalog.
build_auth_catalog turns the config’s auth: block (a map of named
{ type, config } specs) into a map of shared SharedAuthProviders, built
once so that every connector referencing a provider via auth: { ref }
gets the same Arc — one token cache, single-flight refresh, shared across
all matrix rows.
Functions§
- auth_
ref - Extract a connector config’s
auth: { ref: <name> }reference, if present. ReturnsNonefor inline auth or no auth. - build_
auth_ catalog - Build the catalog from the config’s optional
auth:block. - resolve
- Resolve a provider name against the catalog, or error with the known names.
Type Aliases§
- Auth
Catalog - Name → shared provider. An empty catalog is valid (configs with no
auth:block); a connector that then references{ ref }errors withCliError::UnknownAuthProvider.