Fixed bug on case-insensitive properties on OpenIdConnectConfigurationSerializer.cs#2404
Fixed bug on case-insensitive properties on OpenIdConnectConfigurationSerializer.cs#2404stvkouvaris wants to merge 2 commits into
Conversation
|
@microsoft-github-policy-service agree |
|
@stvkouvaris would you be willing to add some tests for this? |
|
This is causing an issue for me as well, was it supposed to get into yesterday's release? The PR looks good to me. |
We need a bit more time to review it @davek-dev and it will go in the 7.2.1 release (end of month or sooner). |
|
Reviewing.... |
|
@jennyf19 I can see that the issue was fixed on 7.3.1 release, however without this pull request getting merged to the main branch. Will it be merged on 7.3.2? Or is this now unnecessary? |
|
@stvkouvaris We had to make a change in the serialization model to ensure that the entire Json Token was read and position the reader on the next token. This PR (#2491). |
brentschmaltz
left a comment
There was a problem hiding this comment.
We have used the ideas here in this PR: #2491
And extended the fixes to JsonWebTokens, JsonWebKey and JsonWebKeySet.
|
We have used the ideas here in this PR: #2491 And extended the fixes to JsonWebTokens, JsonWebKey and JsonWebKeySet. |
Bug fix on case-insensitive property deserialization on OpenIdConnectConfigurationSerializer.cs
Fixes #2402
The json reader was getting out of sync after line 289
string propertyName = JsonPrimitives.ReadPropertyName(ref reader, OpenIdConnectConfiguration.ClassName, true);inside the
elsestatement that is handling case-insensitive property deserialization.Removing the
read: trueparameter from all following json property reads, resolves the issue.