Features
Secrets
Secret access: resolve the API credential through a provider chain, and exchange a refresh token for short-lived access tokens
A feature adds behaviour around API calls without changing how you call the API. Being documented here does not mean it is switched on: features are off by default, and you enable the ones your application needs when you construct the client.
Options
The settings this feature reads, with the defaults compiled into the SDK. Pass replacements in the client configuration to change them; set active to turn the feature on.
{
"active": false,
"cache": true,
"exchange": {
"active": false,
"method": "POST",
"path": "auth/token",
"refresh": "",
"request": "refresh_token",
"response": "access_token",
"retries": 1,
"statuses": [
401
]
},
"name": "apikey",
"providers": []
}
Pipeline stages
The points in the request lifecycle where this feature runs. The SDK calls each stage in order as it prepares a request, sends it, and handles the response.
PreSpec