tian-pengfei commented on PR #4187:
URL: https://github.com/apache/shenyu/pull/4187#issuecomment-1325092608
@yu199195 Sir ,I design a simple structrue . I would like to know what do
you think , I hope you can give me some advices
header:
```json
{
"alg":"HMD5",
"version":"1.0.0",
"appKey":"506EEB535CF740D7A755CB4B9F4A1536",
"timestamp":"1571711067186"
}
```
HMD5-->HMAC-MD5 , HS256--->HMAC-SHA-256 ,etc
> token = base64urlEncoding(header) + '.' + base64urlEncoding(signature)
```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
```
--
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]