8000 Remove FGAP:v1 from external-internal token exchange by graziang · Pull Request #40938 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove FGAP:v1 from external-internal token exchange #40938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

graziang
Copy link
Contributor
@graziang graziang commented Jul 4, 2025

Closes #40855

This PR removes the requirement to have FGAP:v1 enabled for the new version of external-internal token exchange.

I had some doubts about if ExternalToInternalTokenExchangeProvider should extend AbstractTokenExchangeProvider or StandardTokenExchangeProvider.

There are pros and cons: the external-internal exchange works in a similar way to StandardTokenExchangeProvider when generating the internal token, especially for things like scope and audience validation, so a lot of the logic is the same. On the other hand, some parts could be simplified, for example the code to handle offline tokens, refresh tokens, transient sessions which are not supported for external-internal.
I chose to extend StandardTokenExchangeProvider for now, but we can switch to AbstractTokenExchangeProvider later if the implementation becomes more different.

Closes keycloak#40855

Signed-off-by: Giuseppe Graziano <g.graziano94@gmail.com>
@mposolda mposolda self-assigned this Jul 7, 2025
@graziang graziang marked this pull request as ready for review July 7, 2025 09:22
@graziang graziang requested review from a team as code owners July 7, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External-internal token exchange independent from FGAP v1
2 participants
0