-
Notifications
You must be signed in to change notification settings - Fork 59
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
Keyclock-js client library expects refresh tokens being a JWT #210
Comments
Any thoughts on how to handle the keycloak specs interpretation? I guess it come down to these options:
|
@jp7677 sorry about the late response! I'm thinking we should implement this so that keycloak client can be used, it is a minor change after all and shouldn't affect other clients. Haven't decided if we should go the "hacky" route or go with a proper signed JWT - it does seem that the keykloak client only decodes and not validates the token so that leaves all possibilities open :) |
* includes nonce from auth request in a plain JWT * see #210
* feat: support keycloak refresh token format * includes nonce from auth request in a plain JWT * see #210 Co-authored-by: Youssef Bel Mekki <38552193+ybelMekk@users.noreply.github.com>
This is a follow up from #199 (comment)
The keycloak-js client library (https://github.com/keycloak/keycloak/tree/main/adapters/oidc/js) needs some changes in the refresh token. it expects a kind-of proper token where it wants to decode the second part of a string separated by a . and wants to check the nonce in it. My evil hack, which does work, for generating the refresh token looks like the following, whereas the nonce is passed down from AuthorizationCodeHandler.tokenResponse.
Response from @tommytroen :
Response from @jp7677 :
Any ideas how to handle this case? Being compatible with keycloak-js would obviously be nice, though I would understand the hesitation considering the "re-interpretation" of the specifications by Keycloak server and client.
The text was updated successfully, but these errors were encountered: