Repository navigation
Add client OIDC compatibility mode setting for configuring the header type in access tokens. - #37573
Conversation
|
@laurids Thanks for the addition! This is good stuff, but unfortunately Keycloak needs to be backwards compatible and not introduce any breaking changes in the behaviour for supported features (unless necessary for security reasons etc). Considering this, will this be possible to rename the option to something like |
|
Hi @mposolda, thank you. |
|
@laurids The thing is, that when someone creates new client in the admin console, he would now have different behaviour and the token would be Hopefully we have options how to improve on that in the future. For example ability to introduce "Client types" feature will make it possible that in the new versions, people will have |
|
@mposolda Ok, I understand. I will implement the change when I get time, hopefully soon:) |
|
@laurids Thanks a lot! |
|
@mposolda If I flip the setting so that
Instead, it could for example be placed here: Another option would be to keep it under "OpenID Connect Compatibility Modes" with What do you prefer? |
|
@laurids Thanks for the ideas. My vote is to do like you did in the screenshot. So have it as on/off switch |
ac62b2d to
1b2b0f8
Compare
…okens. If this setting is On, the access token header type will be "at+jwt" in compliance with RFC 9068, see https://datatracker.ietf.org/doc/html/rfc9068#section-2.1. If the setting is Off, the access token header type will be "JWT". The setting is Off per default. Closes keycloak#36696 Signed-off-by: Laurids Møller Jepsen <laurids.jepsen@cryptomathic.com>
1b2b0f8 to
0b60585
Compare
|
@mposolda PR has been updated. |
Add client OIDC compatibility mode setting for configuring the header type in access tokens.
If this setting is off, the access token header type will be "at+jwt" in compliance with RFC 9068, see rfc9068#section-2.1. If the setting is on, the access token header type will be "JWT". The setting is on per default, meaning existing clients will issue access tokens with header type "JWT", whereas the setting is off for new clients such that the access token header type is "at+jwt".
Closes #36696
Thank you @thomasdarimont for the idea for this solution: #34183 (comment)