[Bug] byte[] values in JwtPayload et al. are serialized as arrays instead of base64. #2524
Closed
1 of 14 tasks
Labels
Milestone
Which version of Microsoft.IdentityModel are you using?
Microsoft.IdentityModel 7.x.x
Where is the issue?
Is this a new or an existing app?
The app is in production and I have upgraded to a new version of Microsoft.IdentityModel.*
Repro
Expected behavior
byte[] arrays are serialized as base64.
Actual behavior
byte[] arrays are serialized as arrays.
Possible solution
Additional context / logs / screenshots / links to code
Prior to 7.0.0, byte[] arrays were serialized as base64. This is both the default behavior of System.Text.Json and Json.NET. However since 7.0.0 this changed to serialize them as arrays. If this was intentional, it is an undocumented breaking change affecting backwards compatibility and interoperability with other systems expecting the older format!
The text was updated successfully, but these errors were encountered: