You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of this issue serializing a OpenIdConnectConfiguration instance will create a json object with both an issuer and Issuer property. Some other properties like TokenEndpoint are affected, too.
The text was updated successfully, but these errors were encountered:
ghost
added
the
untriaged
New issue has not been triaged by the area owner
label
Jan 29, 2024
Because of this issue serializing a OpenIdConnectConfiguration instance will create a json object with both an issuer and Issuer property. Some other properties like TokenEndpoint are affected, too.
Description
On serializing a derived class overridden properties may be duplicated if
[JsonPropertyName]
is assigned.Reproduction Steps
Create the following classes:
Then serialize an instance of
OverridePropertyNameInDerivedClass_TestClass
like this:Expected behavior
This serialized string should be equal to
{"my_string":"MyValue"}
.Actual behavior
This serialized string is equal to
{"my_string":"MyValue","MyString":"MyValue"}
.Regression?
No response
Known Workarounds
No response
Configuration
.NET: 8.0.0
OS: Linux
Arch: x64
System.Text.Json: 8.0.0
Other information
Known affected code:
OpenIdConnectConfiguration.Issuer
in Microsoft.IdentityModel.Protocols.OpenIdConnect is inherited fromBaseConfguration.Issuer
in Microsoft.IdentityModel.TokensBecause of this issue serializing a
OpenIdConnectConfiguration
instance will create a json object with both anissuer
andIssuer
property. Some other properties likeTokenEndpoint
are affected, too.The text was updated successfully, but these errors were encountered: