yera.tools.creds.resolve
Resolve tool credential keys against the store and active group.
Symbols
def resolve_and_set_tool_creds — Resolve declared keys against the active credential group and set context.
resolve_and_set_tool_creds
resolve_and_set_tool_creds(
creds_keys: list[str],
) → TokenResolve declared keys against the active credential group and set context.
Parameters
creds_keys
type: list[str]
Exact credential keys or dotted namespace prefixes requested by the tool.
Returns
type: Token
Token used to restore the previous tool-credential context.
Raises
CredentialGroupNotSpecifiedError
If no active group is configured.
CredentialGroupNotFoundError
If the configured group does not exist.
CredentialGroupNotAuthorisedError
If the current project is not authorized for the group.
CredentialKeyError
If a selected value is not UTF-8 text.