The "cty" header is always added breaking compatibility with certain services
See original GitHub issueWhich version of Microsoft.IdentityModel are you using? 6.18
Where is the issue?
- M.IM.JsonWebTokens
Is this a new or an existing app? The app is in production and I have upgraded to a new version of Microsoft.IdentityModel.
Expected behavior
The cty
header addition for JsonWebTokenHandler.CreateToken
is controlled by some flag.
Actual behavior
The cty
header is added unconditionally.
Possible solution
Since #1588, there seems to be no way to control the addition of the cty
header, and there are services (for example Apple ID token service) that require the produced token to contain only specified headers. The header set works just fine in the versions up to and including 6.17. After #1588 was completed, there appears to be no way to control the cty
header presence.
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:10 (3 by maintainers)
Top GitHub Comments
@RojaEnnam make sure to address ^^ @onyxmaster we should apologize, after all these years we know changing a wire format needs a back-compat switch.
Released in 6.20.0.