Skip to main content

resolve_credential_store

Function resolve_credential_store 

Source
pub fn resolve_credential_store(
    app_id: &str,
    var: impl Fn(&str) -> Option<String>,
) -> CredentialStore
Expand description

Resolves the effective CredentialStore for app_id against process state.

Reads the CLI-flag override (credential_store_flag), the ${PREFIX}_CREDENTIAL_STORE env var via the injected var getter, and the config file (load), then applies resolve_credential_store_with. The var getter is injected so callers/tests can supply environment lookups without mutating the process environment.