Closed eliaspuurunen closed 1 year ago
Forked the repo and committed my workaround as a reference.
Thanks a lot again @eliaspuurunen, I did not need to add another extension to send the Json payload as I had a set of extensions already in the project.
Describe the bug
When requesting a Client Access Token from
Communications.Authentication.GetClientAccessTokenV2Async
, the request is encoded as Form Data. When calling this method with an access token, the result returned is null.If I change the encoding in
Communications\Authentication.cs
to use JsonContent (see sample https://gist.github.com/lenkan/db28050fe8653890ac93e9f2ace7ba03), I receive a client access token.Expected Behavior
A client access token is returned from the API.
Minimalistic code (recommended)
Specifications