Scandinavian characters doesn't work when using OAuth 2.0

If you think that something doesn't work in Aware IM post your message here
Post Reply
margor
Posts: 3
Joined: Thu Mar 04, 2021 11:05 pm

Scandinavian characters doesn't work when using OAuth 2.0

Post by margor »

I'm currently trying to send data from my application in Aware IM to an external API using OAuth 2.0 as the way to authenticate myself. The data I'm trying to send contains some special characters, in this case it's the Swedish characters ÅÄÖ. The problem I'm facing is that these characters aren't encoded properly when sent, which means the API I'm communicating with can't properly read my data and instead replies with an error message which reads 'Error deserializing JSON: JSON_ERROR_UTF8'.

The API I'm working with used to have another form of authication using a value for Client-secret and Access-Token sent with the request headers which works fine, the special characters show up as expected with no error. This way of authenicating myself is no longer supported for new users, so it cannot be used in my case.

This leads me to believe that something goes wrong when I'm trying to send the same data using OAuth 2.0.
Regards, Martin

Image
joben
Posts: 221
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Scandinavian characters doesn't work when using OAuth 2.0

Post by joben »

Note: This was tested with both version 8.4 and 8.6.
Regards, Joakim

Image
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Scandinavian characters doesn't work when using OAuth 2.0

Post by aware_support »

Can you please send us a small BSV that reproduces the problem?
Aware IM Support Team
Post Reply