|
|
|
@ -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"))), |
|
|
|
|
|
|
|
|