Skip to main content

Module credentials

Module credentials 

Source
Expand description

Credential resolution: keychain → environment variable → config file → None.

Credentials are stored in the macOS Keychain via the security CLI tool, which avoids per-binary authorization prompts that the keyring crate triggers. Each source has one or more named secrets stored as generic passwords with service “scitadel” and the key as the account name.

Structs§

CredentialKey
MissingCredential
A credential that was not found, with instructions on how to set it.
SourceCredentials
Definitions of credentials required by each source.

Statics§

ALL_SOURCES
All sources that support authentication.
EPO_CREDENTIALS
LENS_CREDENTIALS
OPENALEX_CREDENTIALS
PATENTSVIEW_CREDENTIALS
PUBMED_CREDENTIALS

Functions§

check_source
Check whether a source has all required credentials configured.
delete
Delete a credential from the macOS Keychain via security CLI.
get_keychain
Get a credential from the macOS Keychain via security CLI.
resolve
Get a credential value by trying keychain, then env var, then config fallback.
store
Store a credential in the macOS Keychain via security CLI.