Repository navigation
Migration Guide for internal-to-internal Token Exchange Migration V1 to V2 - #55411
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Three documentation links use incorrect anchor fragments, preventing navigation to the intended identity-brokering, client-policy, and downscoping guidance.
3 open issues
What changed in this PR
Adds a guide for migrating internal-internal token exchange clients from legacy V1 to standard V2, addressing issue #47625.
Changes:
- Explains differences in client requirements, scopes, audiences, authorization, and token types.
- Provides configuration steps, request examples, and refresh-token guidance.
- Adds a phased migration checklist, troubleshooting advice, and links to related flows.
| File | Description |
|---|---|
docs/guides/securing-apps/token-exchange-migration.adoc |
Adds the V1-to-V2 migration guide. |
Review effort: Balanced
b35d321 to
60d85c3
Compare
60d85c3 to
d13527c
Compare
d13527c to
9781213
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The migration and troubleshooting guidance should restrict credential deployment to trusted server-side applications, since public browser and native clients cannot keep those credentials secret.
1 open issue
Review effort: Balanced
There was a problem hiding this comment.
@jimmychakkalakal Thanks for this PR!
I have one general point: This documentation is targeted to Keycloak 27 . Stian suggested that we do not backport this documentation to 26.8. And in Keycloak 27, token exchange V1 is going to be removed (that is hard requirement for KC 27). So considering this, it is OK to assume that readers of this guide would use Keycloak version where V1 token exchange is not available anymore. So better to slightly rewrite some parts to assume that V1 is already removed (I've added some inline comments in regards to this).
Another general comment: It may be good if we have "Migration" as the single guide under "Securing apps" and 4 related migrations (internal-internal, external-internal, internal-external, delegation) as dedicated "sub-chapters" of that one. I've just added that to the parent issue description #47624 . Sorry, that I did not mentioned before. So considering that, maybe it is better to create dedicated subsection like "Migrating from internal-internal Token Exchange v1 to v2" under the "Migrating from Token Exchange v1 to v2"? this means the most sections of this guide would need to be moved under that section and hence would be one level deeper. Would that work?
Also I've added few inline comments. Lots of them are related to links and I am not 100% sure whether those are correct (as maybe the links are not proper when I build this guide locally on my laptop, but they would be correct once this is build in the "real production" environment). Feel free to reply and resolve inline comments if some of my inline comments regarding links are not accurate.
migration guide to migrate clients to V2 Closes keycloak#47625 Signed-off-by: Jimmy Chakkalakal <jimmy.chakkalakal@ibm.com>
9781213 to
3f21327
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The migration guide incorrectly claims V1 was removed in version 27, although it remains available as a deprecated preview feature and the guide itself describes coexistence with V2.
1 open issue
1 resolved since last review
Review effort: Balanced
Closes keycloak#47625 Signed-off-by: Jimmy Chakkalakal <jimmy.chakkalakal@ibm.com>
6520e8c to
2bb8b2f
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The migration guide incorrectly frames V1 as removed in version 27 even though it remains available as a deprecated preview feature, so the wording must match the implementation.
1 open issue
1 resolved since last review
Review effort: Balanced
Thanks @mposolda for the guidance. I’ve also moved the internal-internal migration content into a dedicated chapter under the shared migration guide. This remains a single entry under “Securing apps”; the other three migration cases can be added as chapters through their related issues. For the reported cross-guide links, I confirmed that the website build supplies the correct page URLs. The double-# links come from the local combined HTML build. I request for re-review. Thanks |

migration guide to migrate
clients to V2
Closes #47625