Security callbacks
Instead of providing credentials once during SDK instantiation, pass a custom authentication function that allows end users to manage secrets dynamically. Custom authentication functions can be used to automatically refresh tokens or retrieve secrets from a secret store.
Language support
Language
TypeScript
Status
✅
Python
Status
✅
Go
Status
✅
C#
Status
✅
Java
Status
✅
PHP
Status
✅
Swift
Status
🏗️
Ruby
Status
✅
Example: Bearer authentication
In this example, bearer authentication is used as the only security scheme:
The callback function passed when initializing the SDK acts as a security source and is called whenever a request is made, allowing tokens to be refreshed if needed.
Last updated on