06_credentials_func

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

CredentialsFunc lets the SDK look up credentials per request. Useful when:

  • env vars override an OS keyring (CLI pattern)
  • a multi-tenant server picks credentials by tenant from request context
  • tokens are stored in a vault that needs to be queried per call

Here we demonstrate the env-vars-then-keyring pattern. The "keyring" is stubbed inline; in practice you'd plug in zalando/go-keyring or any other secret store on your side — the SDK stays agnostic.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL