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.
Click to show internal directories.
Click to hide internal directories.