diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Userinfo.cs b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Userinfo.cs
index fb11996a..3af22847 100644
--- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Userinfo.cs
+++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.Userinfo.cs
@@ -70,8 +70,8 @@ public static partial class OpenIddictClientWebIntegrationHandlers
{
// The userinfo endpoints exposed by these providers
// are based on GraphQL, which requires using POST:
- ProviderTypes.Buffer or ProviderTypes.Linear or ProviderTypes.Meetup
- or ProviderTypes.SubscribeStar => HttpMethod.Post,
+ ProviderTypes.Buffer or ProviderTypes.Linear or
+ ProviderTypes.Meetup or ProviderTypes.SubscribeStar => HttpMethod.Post,
// The userinfo endpoints exposed by these providers
// use custom protocols that require using POST:
@@ -276,14 +276,14 @@ public static partial class OpenIddictClientWebIntegrationHandlers
{
// The userinfo endpoints exposed by these providers are based on GraphQL,
// which requires sending the request parameters as a JSON payload:
- ProviderTypes.Buffer or ProviderTypes.Linear or ProviderTypes.Meetup
- or ProviderTypes.SubscribeStar => JsonContent.Create(
- context.Transaction.Request,
- OpenIddictSerializer.Default.Request,
- new MediaTypeHeaderValue(MediaTypes.Json)
- {
- CharSet = Charsets.Utf8
- }),
+ ProviderTypes.Buffer or ProviderTypes.Linear or
+ ProviderTypes.Meetup or ProviderTypes.SubscribeStar => JsonContent.Create(
+ context.Transaction.Request,
+ OpenIddictSerializer.Default.Request,
+ new MediaTypeHeaderValue(MediaTypes.Json)
+ {
+ CharSet = Charsets.Utf8
+ }),
_ => request.Content
};
@@ -391,8 +391,8 @@ public static partial class OpenIddictClientWebIntegrationHandlers
{
["accounts"] = context.Response["accounts"]
},
-
- // Buffer wraps the response in the standard GraphQL "data" envelope.
+
+ // Buffer returns a nested "account" object that is itself nested in a GraphQL "data" node.
ProviderTypes.Buffer => new(context.Response["data"]?["account"]?.GetNamedParameters()
?? throw new InvalidOperationException(SR.FormatID0334("data/account"))),
diff --git a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml
index df673e75..f31dbfa1 100644
--- a/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml
+++ b/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml
@@ -403,6 +403,7 @@
UserInfoEndpoint="https://api.buffer.com/"
AuthorizationResponseIssParameterSupported="true">
+
@@ -411,7 +412,7 @@
-