09-06-2021 05:58 AM
Hello,
I have problems to sign a request with HMAC for the user delete endpoint in the admin api.
The endpoint to create users is working well.
The difference seems to be the parameters. While I have parameters in the create request I have no params in the user delete request which seems to result in a wrong signing, because I’m getting error 40103 “Invalid signature in request credentials”
The request to sign is:
Mon, 06 Sep 2021 14:53:46 +0200
DELETE
■■■■■■■■■■■■■■■■■■■■■■■■■■■■
/admin/v1/users/DUGTEXN2WBAHLD7J8EI
Is this correct?
Any help is appreciated.
Best regards
Benjamin
Solved! Go to Solution.
09-06-2021 07:17 AM
Ok, found the problem.
For all the guys being frustrated about the same issue:
You have to insert an extra empty line with a Line Feed for having no params.
The right request is:
Mon, 06 Sep 2021 14:53:46 +0200
DELETE
http://■■■■■■■■■■■■■■■■■■■■■■■■■■■■/
/admin/v1/users/DUGTEXN2WBAHLD7J8EI
<---- LineFeed
09-06-2021 07:17 AM
Ok, found the problem.
For all the guys being frustrated about the same issue:
You have to insert an extra empty line with a Line Feed for having no params.
The right request is:
Mon, 06 Sep 2021 14:53:46 +0200
DELETE
http://■■■■■■■■■■■■■■■■■■■■■■■■■■■■/
/admin/v1/users/DUGTEXN2WBAHLD7J8EI
<---- LineFeed
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: