tian-pengfei opened a new issue, #4208:
URL: https://github.com/apache/shenyu/issues/4208

   ### Description
   
   
   header:
   ```json
   {
       "alg":"HMD5",
       "version":"1.0.0",
       "appKey":"506EEB535CF740D7A755CB4B9F4A1536",
       "timestamp":"1571711067186"
   }
   ```
   HMD5-->HMAC-MD5   , HS256--->HMAC-SHA-256 ,etc
   ```tex
   signature = HMAC(
     base64urlEncoding(header) + Relative URL + Body*,
     secret
   );
   
   * indicate Optional , it depends on config
    Relative URL = path [ "?" query ] [ "#" fragment ]  eg: 
/apache/shenyu/pulls?q=is%3Apr+is%3Aclosed
   ```
   
   > token = base64urlEncoding(header) + '.' + base64urlEncoding(signature)
   
   Put token into request header, maybe   name of request header is 
Authorization or other
   
   
   ### Task List
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to