Configure token exchange trust
Establishes a trust relationship between the Ops Manager UAA and a remote Hub UAA for RFC 8693 token exchange. Ops Manager discovers the Hub UAA issuer via its OIDC discovery endpoint, persists the configuration, and applies it to the running UAA over UAA's identity provider API.
This endpoint is idempotent and never restarts UAA: resubmitting a configuration that is
already in effect leaves the same configuration in effect, and every field, including
hub_uaa_ca_cert, is applied to the running UAA immediately.
{
"token_exchange_trust": {
"hub_uaa_url": "string",
"hub_uaa_ca_cert": "string",
"origin_mappings": [
{
"external_origin": "string",
"local_origin": "string"
}
]
}
}
token_exchange_trust
OK
{
"token_exchange_trust": {
"hub_uaa_url": "string",
"hub_uaa_issuer": "string",
"origin_mappings": [
{
"external_origin": "string",
"local_origin": "string"
}
],
"configured": false
}
}
token_exchange_trust
Setup is not completed
{
"errors": {
"errors": [
"string"
]
}
}
errors
Unauthorized
{
"errors": {
"errors": [
"string"
]
}
}
errors
Forbidden
{
"errors": {
"errors": [
"string"
]
}
}
errors
Unprocessable Content
{
"errors": [
"string"
]
}
errors
The configuration could not be applied to UAA, nothing was saved, and the request can be retried
{
"errors": [
"string"
]
}
errors
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/uaa/token_exchange_trust