Member Junction
    Preparing search index...

    Interface CredentialResolutionOptions

    Options for resolving credentials.

    interface CredentialResolutionOptions {
        contextUser?: UserInfo;
        credentialId?: string;
        credentialName?: string;
        directValues?: Record<string, string>;
        expirationPolicy?: CredentialExpirationPolicy;
        subsystem?: string;
    }
    Index

    Properties

    contextUser?: UserInfo

    Required on server-side: The user context for the operation. Used for audit logging and database access.

    credentialId?: string

    Optional: Specific credential ID to retrieve. Takes precedence over credentialName lookup.

    credentialName?: string

    Optional: Override the credential name to look up. If not provided, uses the name passed to getCredential().

    directValues?: Record<string, string>

    Optional: Direct values to use instead of database lookup. Takes precedence over all other options. Useful for testing or when credentials are provided via other means.

    expirationPolicy?: CredentialExpirationPolicy

    Optional: Override the engine-wide expiration policy for this one call.

    Pass 'warn' for the narrow set of callers that legitimately need to read a credential because it has expired — chiefly credential rotation and administration tooling, which must load the stale value in order to replace it. Ordinary consumers should leave this unset and inherit the engine's configured policy.

    subsystem?: string

    Optional: Subsystem name for audit logging. Helps identify where credentials are being used.