I am trying to configure hmac-auth plugin in kong, i have tried so many time to create signature but every time when i hit the request through postman i got the error " message": “HMAC signature does not match”"
please let me know the proper steps to configure and to generate the signature
You can find an example in the docs, here’s the relevant bit:
In the above request, we are composing the signing string using the date and request-line headers and creating the digest using the hmac-sha256 to hash the digest:
let us suppose today’s date and time is (Mon, 01 Apr 2019 17:15:21 GMT)
taking signing string as “date: Mon, 01 Apr 2019 17:15:21 GMT\nGET /requests HTTP/1.1”
3.creating base64_digest of (ca9eaa377b3a77a0457c9093562e83e2032bdf6261ae00b81cc6d05b58273db6)
through https://www.base64encode.org/ i.e - > Y2E5ZWFhMzc3YjNhNzdhMDQ1N2M5MDkzNTYyZTgzZTIwMzJiZGY2MjYxYWUwMGI4MWNjNmQwNWI1ODI3M2RiNg==
Test the hmac through postman with below authorization header