riskgod edited a comment on issue #4117: URL: https://github.com/apache/apisix/issues/4117#issuecomment-825507023
> In the lower part of the hmac-auth plugin, adjust the log level to warn and check the log output. > > https://github.com/apache/apisix/blob/725e9879cdfba39b5a16e027f345ca26ee43c499/apisix/plugins/hmac-auth.lua#L296 > > https://github.com/apache/apisix/blob/725e9879cdfba39b5a16e027f345ca26ee43c499/apisix/plugins/hmac-auth.lua#L270-L273 hey after check with debug log, find the problem, thank you man, #### This signing string is from apisix itself. ``` signing_string: POST /checkAddress user-key-tomi Fri, 23 Apr 2021 08:36:32 GMT Date:Fri, 23 Apr 2021 08:36:32 GMT User-Agent:curl/7.29.0 x-custom-a:test ``` Well, we need to update he signing string in our code ``` const today = new Date(); const dateNow = today.toGMTString(); console.log(dateNow) const check_address = `POST /checkAddress user-key-tomi ${dateNow} Date:${dateNow} User-Agent:curl/7.29.0 x-custom-a:test `; ``` Now , it works! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
