Exchanges a Witboost access token for a short-lived JWT to authenticate API calls.
Rules:
duration_seconds cannot exceed the remaining lifetime of the access token. If it does, the request is rejected.duration_seconds is not provided, a default duration is used (configured by backend.auth.shortLivedTokendurationSeconds, default: 5 minutes).scope field accepts a space-separated list of scopes (e.g., for requests going to the WCG service:computational-governance).| access_token required | string The Witboost access token to exchange |
| duration_seconds | integer >= 1 Lifetime of the generated JWT in seconds. If omitted, the backend default is used (configured by |
| scope | string Space-separated list of scopes for the generated JWT |
{- "access_token": "wbat-YY4BMWsHE-tRQ5ZH5HWop_0AjukY4wOPOrx",
- "duration_seconds": 3600,
- "scope": "scope-1 scope-2 scope-3"
}{- "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}