OAuth Token Exchange / Impersonation Support in Pega Cloud

Does Pega Cloud support OAuth Token Exchange / Impersonation (/oauth-token-exchange-impersonation) using the access token from an OIDC SSO session?

Our IDP provides an API for token exchange, but Pega Cloud manages the SSO access token internally and automatically includes it in the Authorization header through the Authentication Profile.

If Pega Cloud does not provide OOTB support for token exchange, is there a supported way to retrieve the underlying access token and explicitly pass it to the IDP’s Token Exchange API?

I came across a similar discussion in the Pega Community, but it doesn’t appear to have reached a conclusion.

Looking for the recommended approach..

As far as I know, Pega does not have documented OOTB support for OAuth Token Exchange (RFC 8693) using the existing OIDC SSO access token. I would recommend creating a separate Connect-REST integration with an Authentication Profile to call the IDP’s token exchange API, provided the IDP accepts the existing token through the Authorization header. If the IDP requires the token in the request body as subject_token, check with Pega Support for a supported API to retrieve it. Avoid directly accessing or decrypting tokens from the pr_data_token table. Alternatively, you can handle the token exchange through a secure API gateway or middleware. This approach would help maintain security and compatibility with future Pega Cloud upgrades