-
Notifications
You must be signed in to change notification settings - Fork 417
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
Fixed bug on case-insensitive properties on OpenIdConnectConfigurationSerializer.cs #2404
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
else
statement that is handling case-insensitive property deserialization.Removing the
read: true
parameter from all following json property reads, resolves the issue.