Skip to main content

Module auth_catalog

Module auth_catalog 

Source
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. Returns None for 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§

AuthCatalog
Name → shared provider. An empty catalog is valid (configs with no auth: block); a connector that then references { ref } errors with CliError::UnknownAuthProvider.