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 2020/11/07 08:24:24 UTC

[GitHub] [apisix-dashboard] membphis commented on issue #716: bug: use dashboard2.0 set jwt-auth, it will return 404 when generate JWT credential

membphis commented 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.
   
   ```
   # create by dashboard, use the dashboard data:
   
   curl http://127.0.0.1:9080/apisix/admin/consumers  -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {"id":"test_hj","create_time":1604724760,"update_time":1604724760,"username":"test_hj",
   "plugins":{"jwt-auth":{"algorithm":"HS256","base64_secret":false,"key":"ee","secret":"my-secret-key"}}}
   '
   
   # 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:21:14 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:
users@infra.apache.org