You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/04/12 02:32:08 UTC

[GitHub] [apisix] hf400159 commented on a diff in pull request #6824: docs: update "Authentication" Plugins

hf400159 commented on code in PR #6824:
URL: https://github.com/apache/apisix/pull/6824#discussion_r847437789


##########
docs/en/latest/plugins/hmac-auth.md:
##########
@@ -266,10 +282,13 @@ plugin_attr:
     body_digest_key: X-APISIX-HMAC-BODY-DIGEST
 ```
 
-**After customizing the header, request example:**
+Now you can use the new keys while making a request:
+
+```shell
+curl http://127.0.0.1:9080/index.html -H 'X-APISIX-HMAC-SIGNATURE: base64_encode(SIGNATURE)' -H 'X-APISIX-HMAC-ALGORITHM: ALGORITHM' -H 'X-APISIX-DATE: DATE' -H 'X-APISIX-HMAC-ACCESS-KEY: ACCESS_KEY' -H 'X-APISIX-HMAC-SIGNED-HEADERS: SIGNED_HEADERS' -H 'X-APISIX-HMAC-BODY-DIGEST: BODY_DIGEST' -i

Review Comment:
   ```suggestion
   curl http://127.0.0.1:9080/index.html \
   -H 'X-APISIX-HMAC-SIGNATURE: base64_encode(SIGNATURE)' \
   -H 'X-APISIX-HMAC-ALGORITHM: ALGORITHM' \
   -H 'X-APISIX-DATE: DATE' \
   -H 'X-APISIX-HMAC-ACCESS-KEY: ACCESS_KEY' \
   -H 'X-APISIX-HMAC-SIGNED-HEADERS: SIGNED_HEADERS' \
   -H 'X-APISIX-HMAC-BODY-DIGEST: BODY_DIGEST' -i
   ```



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org