Forum

Browse topics, discover Works With Legrand community!

client_secret contains non-ascii characters and fails to retrieve the token

Hi,

I’m able to perform the “authorize” request and obtain the “code”. Only the following step is giving me grief. In to obtain a token, we need to send as a form parameter the client_id, grant_type, code from previous step and lastly the client_secret. I received the secret by mail but it seems to obtain some non-ASCII characters.

My POST request does url-encode these characters but i receive always an “500 internal server error”

“error_description”: “An unexpected server error occurred”

Example “>” get’s encoded as “%3E” and “{” becomes “%7B”

Question: is there a way to change the client secret? Was anybody else in the same scenario, and how was it solved?

Thanks for your insight on the above!

Hello Pascal,

The client_secret can’t be changed. If you want to have a new one, you need to create a new application

But if you parse your client_secret (for the special characters to be understood) it will work

Have a good day,

Leslie – Community Manager

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.