Forum

Browse topics, discover Works With Legrand community!

Cannot get access token

Hi, I’m stuck with the authentication process: I have my client ID and code (step 1) but impossible to complete the step 2:
"error": "invalid_client",
"error_description": "The client secret property is empty"

of course client secret is not empty in my POST command

Any ideas of what could be wrong ?
thanks

Hello Amaury,

Can you please send me - with your authorization of course - the exact request you are sending via the contact form ?

Thanks and have a good day,

Leslie - Community Manager

Hello, do you have more information about my problem ? I did what you ask two weeks ago.

Thank you

Hello Amaury,

I answered you via email (maybe it's in your spam box ?)

Here is what I sent you :

 

You seem to put requested information in parameters instead of body

Here is a working Postman generated cURL request :

curl -L -X POST 'https://partners-login.eliotbylegrand.com/token' \
-F 'client_id=7366fd4e-b078-43d1-93b3-b6cbf67XXXXXX' \

-F 'grant_type=authorization_code' \

-F 'client_secret=GB-(vik]c4f4!vD|~XXXXXX' \

-F 'code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..FTr3oXPvekyVurfF.sXe19z8vxGw-pNcvdbBbf1RbtMsYQXAtd2KCOnOLVl9xSJnzcxIHTKiEzPfan5U6LHuCuKKp7IrM5gV0j_uvFDjMfd15f_YJxcFjokBi1EkqKTk9OwIA6VFV6kYIQhLX13J-e3JQeCHl-JQ2uzpoGRExfki4lgoKtkqknABZyYw08_p9_rm4AvSOqF_8SDgSjV6OtGxZOkiQia-bRVq6bZGSUBeEHUGPlPve1XflX61UZHYHdjquINzB416p3GsZcQMfLUgcFhXD3JAP48H4BrwooivQCBO53Lqzue04dChw3YCh3DvDU59Kk9rpldvsbrJub69ylAK-128d5PcSC9vA3JcL7SvQNhTnKWODjhp7iq9BfstMS7A7okXLjZ4kXUBZdkp7EeoRXMClIA3sReXxVlI9ecxIRNnR4HwS28LSgzhB7tb9jj5xRIsKNyyxL7IURBbgQHPUKqaK8SyIl5ZPgcN1LcNdThvFStEtTDN30eg-kmtMU7OhzMXDjnVa1b5UCnnlUqFveNasyejBdrBrD8w3j0rbs1pjzGNLwTgzdnkHxNNZFlJsm3-5cV4mHEDEDzHhe54g6Pgx297z-_sN2DlupaeHrEB5FjbgxM0W1dHm99ZvGIDwqrVDcK8kt2B-jW283h41XpUGJ6Rz_YoG_PuwiqXTmsrYXbGHthjKza9BmNa25GVDToOKlhK1TUz47-rsL_VcfSWIqwDcP3yEkiv-LfbEaKuemAOKQnOJWi6-VewLKivbCZItCSaRN5te3OlDuWgwjQg3nzqSnbMaITLbQ3HQqDJMWkYL5UoQsp3c_Z3D8jeB9VCS-jWX1VTN6t6eKjSICv5bXXXXXXXXX'

 

Have a good day,

Leslie - Community Manager

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

You must be logged in to reply to this topic.

Information

message3 replies
people2 participants