membphis edited a comment on issue #716:
URL:
https://github.com/apache/apisix-dashboard/issues/716#issuecomment-723417617
@idbeta It works fine at my side when I try to use the dashboard data.
```sh
# create by dashboard data:
$ etcdctl put /apisix/consumers/test_hj '
{
"username": "test_hj",
"id": "test_hj",
"plugins": {
"jwt-auth": {
"base64_secret": false,
"secret": "my-secret-key",
"exp": 86400,
"key": "ee",
"algorithm": "HS256"
}
},
"update_time": 1604724760,
"create_time": 1604724760
}'
OK
# setp3: generate JWT credential
$ curl http://127.0.0.1:9080/apisix/plugin/jwt/sign\?key\=ee -i
HTTP/1.1 200 OK
Date: Sat, 07 Nov 2020 08:28:24 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/2.0
... ...
```
----------------------------------------------------------------
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]