Repository navigation
Token Exchange does not work with requested_subject #37140
Unanswered
cdecinkoKnight
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Keycloak v.24.0.2
I have a need to get a token for my service account client and exchange for a token in my app's client for a particular user. I can get token exchange working, without requested_subject, i.e. service account gets a token in SA client and then gets a token in app client. As soon as I introduce requested_subject to get a token for a user, I get 403 Forbidden, access denied, Client not allowed to exchange.
I've configured token exchange in both clients and even added a policy that includes both clients. I've consulted both ChatGPT and Claude as well as the official Keycloak documentation. I've followed every step and variation but the result is always the same.
All reactions