diff --git a/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs b/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs index 7a3c6e20..059839de 100644 --- a/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs +++ b/src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs @@ -681,7 +681,7 @@ public readonly struct OpenIddictParameter : IEquatable var result = _value switch { - // When the parameter is a JsonElement representing an array, return the requested item. + // When the parameter is a JsonElement representing an object, return the requested item. JsonElement { ValueKind: JsonValueKind.Object } element => element.TryGetProperty(name, out JsonElement property) ? new(property) : null, diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Revocation.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Revocation.cs index 219d087f..7fdb2555 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Revocation.cs +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Revocation.cs @@ -195,14 +195,14 @@ public static partial class OpenIddictClientWebIntegrationHandlers { // MusicBrainz returns empty revocation responses declared as "text/html" responses. // - // Since empty HTML payloads are not valid JSON nodes, the Content-Length is manually set - // to 0 to prevent OpenIddict from trying to extract a JSON payload from such responses. + // Since empty HTML payloads are not valid JSON nodes, the Content-Type is manually set + // to null to prevent OpenIddict from trying to extract a JSON payload from such responses. ProviderTypes.MusicBrainz when response.Content.Headers.ContentLength is 0 => null, // Reddit returns empty revocation responses declared as "application/json" responses. // - // Since empty JSON payloads are not valid JSON nodes, the Content-Length is manually set - // to 0 to prevent OpenIddict from trying to extract a JSON payload from such responses. + // Since empty JSON payloads are not valid JSON nodes, the Content-Type is manually set + // to null to prevent OpenIddict from trying to extract a JSON payload from such responses. ProviderTypes.Reddit when response.Content.Headers.ContentLength is 0 => null, _ => response.Content.Headers.ContentType diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xsd b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xsd index 180c8768..4f05cef2 100644 --- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xsd +++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xsd @@ -64,7 +64,12 @@ + + + + + @@ -171,7 +176,12 @@ + + + + + @@ -192,7 +202,12 @@ + + + + + @@ -213,7 +228,12 @@ + + + + +