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 2021/09/01 09:52:09 UTC

[GitHub] [apisix] caixiaomao opened a new issue #4962: docs: Improved hmac-auth plugin signature string generation instructions

caixiaomao opened a new issue #4962:
URL: https://github.com/apache/apisix/issues/4962


   ### Improved or typo fixed.
   
   When a signature string is generated, an empty string must be wrapped, even if there is no signature information. Otherwise, authentication fails. This needs to be addressed when generating the signature string
   
   ### Solution
   
   Add the corresponding description to the sample document that generates the sample signature string


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



[GitHub] [apisix] caixiaomao commented on issue #4962: docs: Improved hmac-auth plugin signature string generation instructions

Posted by GitBox <gi...@apache.org>.
caixiaomao commented on issue #4962:
URL: https://github.com/apache/apisix/issues/4962#issuecomment-910964193


   It's not a bug, it's documentation that needs fixing。
   In the **Signature string splicing example**
   The `signing_string` generated according to the `signature generation formula` is:
   
   ```plain
   "GET
   /index.html
   age=36&name=james
   user-key
   Tue, 19 Jan 2021 11:33:20 GMT
   User-Agent:curl/7.29.0
   x-custom-a:test
   "
   ```
   
   If there is no date or canonical_query_string, The string that needs to be encrypted should look like this, and the documentation should complement this
   
   ```plain
   "GET
   /index.html
   
   user-key
   
   User-Agent:curl/7.29.0
   x-custom-a:test
   "
   ```


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



[GitHub] [apisix] tzssangglass commented on issue #4962: docs: Improved hmac-auth plugin signature string generation instructions

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #4962:
URL: https://github.com/apache/apisix/issues/4962#issuecomment-910381592


   hi @caixiaomao , Can you paste the link or picture to the error?


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



[GitHub] [apisix] spacewander closed issue #4962: docs: Improved hmac-auth plugin signature string generation instructions

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4962:
URL: https://github.com/apache/apisix/issues/4962


   


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



[GitHub] [apisix] caixiaomao edited a comment on issue #4962: docs: Improved hmac-auth plugin signature string generation instructions

Posted by GitBox <gi...@apache.org>.
caixiaomao edited a comment on issue #4962:
URL: https://github.com/apache/apisix/issues/4962#issuecomment-910964193


   @tzssangglass 
   It's not a bug, it's documentation that needs fixing。
   In the **Signature string splicing example**
   The `signing_string` generated according to the `signature generation formula` is:
   
   ```plain
   "GET
   /index.html
   age=36&name=james
   user-key
   Tue, 19 Jan 2021 11:33:20 GMT
   User-Agent:curl/7.29.0
   x-custom-a:test
   "
   ```
   
   If there is no date or canonical_query_string, The string that needs to be encrypted should look like this, and the documentation should complement this
   
   ```plain
   "GET
   /index.html
   
   user-key
   
   User-Agent:curl/7.29.0
   x-custom-a:test
   "
   ```


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