Appearance
Token Exchange
If your tenant has Token Exchange configured, you can authenticate against the SCO API using tokens issued by your own Identity Provider. The validity period of the exchanged access token is 8h by default. It is configurable by an administrator.
Usage
Pass your external token in the Authorization header when calling any SCO API. The token will be exchanged automatically:
http
GET https://api.private.cloud.swisscom.ch/orchestration/v1/instances?tenantKey=my-tenant
Authorization: Bearer <your-external-jwt-token>No additional steps are required. The exchange happens transparently on every request.
Prerequisites
- Token Exchange must be configured on your tenant by an administrator
- The external token must be issued by the configured issuer
- If audiences are configured, the token's
audclaim must match at least one value
Explicit token retrieval
If you need to obtain the exchanged access token directly (e.g. for debugging or passing to another system), you can call the explicit exchange endpoint:
http
POST https://api.private.cloud.swisscom.ch/tenancy/v1/authentication/token-exchange?tenantKey=my-tenant
Content-Type: text/plain
Authorization: Bearer <your-external-jwt-token>
<your-external-jwt-token>This returns the access token in the response body (access_token).
