Skip to content

Commit

Permalink
Replace propertyName with MetadataName constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
HP712 authored and brentschmaltz committed Jan 30, 2024
1 parent e7eb8b7 commit 9464f74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public static OpenIdConnectConfiguration Read(ref Utf8JsonReader reader, OpenIdC
// TODO these two properties are per spec 'boolean', we shipped 6x with them as string, if we change we may break folks.
// probably best to mark the property obsolete with the gentle tag, then open up another property and keep them in sync,
// remove the obsolete in 8.x
else if (propertyName.Equals(propertyName, StringComparison.OrdinalIgnoreCase))
else if (propertyName.Equals(MetadataName.FrontchannelLogoutSessionSupported, StringComparison.OrdinalIgnoreCase))
{
reader.Read();
if (reader.TokenType == JsonTokenType.True)
Expand All @@ -336,7 +336,7 @@ public static OpenIdConnectConfiguration Read(ref Utf8JsonReader reader, OpenIdC
else
config.FrontchannelLogoutSessionSupported = JsonPrimitives.ReadString(ref reader, MetadataName.FrontchannelLogoutSessionSupported, ClassName, false);
}
else if (propertyName.Equals(propertyName, StringComparison.OrdinalIgnoreCase))
else if (propertyName.Equals(MetadataName.FrontchannelLogoutSupported, StringComparison.OrdinalIgnoreCase))
{
reader.Read();
if (reader.TokenType == JsonTokenType.True)
Expand Down

0 comments on commit 9464f74

Please sign in to comment.