8000 Migration Guide for internal-to-internal Token Exchange Migration V1 to V2 by jimmychakkalakal · Pull Request #55411 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Migration Guide for internal-to-internal Token Exchange Migration V1 to V2 - #55411

Open
jimmychakkalakal wants to merge 2 commits into
keycloak:mainfrom
jimmychakkalakal:issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal
Open

jimmychakkalakal wants to merge 2 commits into
keycloak:mainfrom
jimmychakkalakal:issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal

Conversation

@jimmychakkalakal
Copy link
Copy Markdown
Contributor

migration guide to migrate
clients to V2

Closes #47625

@jimmychakkalakal
jimmychakkalakal requested a balanced review from Copilot November 20, 2026 13:59
@jimmychakkalakal jimmychakkalakal changed the title Create internal-to-internal Migration Guide for internal-to-internal Token Exchange Migration V1 to V2 Nov 20, 2026
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@jimmychakkalakal
jimmychakkalakal force-pushed the issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal branch from b35d321 to 60d85c3 Compare November 20, 2026 16:46
@jimmychakkalakal
jimmychakkalakal requested a balanced review from Copilot November 20, 2026 16:46
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The migration guide misleadingly implies that azp changes during migration, although V1 already sets it to the requester client.

1 open issue
3 resolved since last review

Review effort: Balanced

@jimmychakkalakal
jimmychakkalakal force-pushed the issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal branch from 60d85c3 to d13527c Compare November 20, 2026 16:52
@jimmychakkalakal
jimmychakkalakal requested a balanced review from Copilot November 20, 2026 16:52
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Token Exchange V1-to-V2 migration guide.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jimmychakkalakal
jimmychakkalakal force-pushed the issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal branch from d13527c to 9781213 Compare November 20, 2026 16:54
@mposolda
mposolda marked this pull request as ready for review November 24, 2026 12:17
@mposolda
mposolda requested a review from a team as a code owner November 24, 2026 12:17
Copilot AI balanced review requested due to automatic review settings November 24, 2026 12:17
@mposolda mposolda self-assigned this Nov 24, 2026
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@mposolda mposolda left a comment •
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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>
@jimmychakkalakal
jimmychakkalakal force-pushed the issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal branch from 9781213 to 3f21327 Compare November 26, 2026 11:21
Copilot AI balanced review requested due to automatic review settings November 26, 2026 11:21
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the V1-to-V2 token exchange migration guide.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 26, 2026 12:19
Copilot stopped reviewing on behalf of jimmychakkalakal due to an error November 26, 2026 12:19
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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>
@jimmychakkalakal
jimmychakkalakal force-pushed the issues/47625-Migration-Guide-Token-Exchange-Internal-to-Internal branch from 6520e8c to 2bb8b2f Compare November 26, 2026 12:58
Copilot AI balanced review requested due to automatic review settings November 26, 2026 12:58
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the Token Exchange V1-to-V2 migration guide.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jimmychakkalakal
Copy link
Copy Markdown
Contributor Author

Member

Thanks @mposolda for the guidance.
I’ve updated the guide to assume Keycloak 27 with V1 removed. V1 examples are now explicitly historical, and the coexistence and fallback instructions have been removed.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrating from token exchange V1 to V2 (internal-internal)

3 participants

0