bin-53 opened a new issue, #10079:
URL: https://github.com/apache/apisix/issues/10079

   ### Description
   
   I am learning how to develop apisix, but when I try to change the jwt-auth 
plugin parameter, secret is required, it does not work on the page
   
   step 1:
   modify the jwt-auth.lua
   
![image](https://github.com/apache/apisix/assets/131146587/5dbde5e0-e06c-44bf-99af-a0c67a211cde)
   step 2:
   Release source code
   
   setp 3:
   Check whether the data has been modified successfully
   
   
![image](https://github.com/apache/apisix/assets/131146587/b28336fc-464a-44c2-a856-1e2220a77069)
   successful
   
   step 4:
   check the page jwt-auth:
   Surprisingly, the required parameter is still only key, not secret
   
   
![image](https://github.com/apache/apisix/assets/131146587/0a8f0dfe-99de-4f99-a728-d013133f70a1)
   
   step 5:
   When I looked at jwt-auth alone, I couldn't find the require parameter
   
   ```
   [root@localhost ~]# curl 
http://10.210.21.105:9080/apisix/admin/plugins/jwt-auth -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'
   {"$comment":"this is a mark for our injected plugin 
schema","properties":{"_meta":{"properties":{"filter":{"items":{"type":"array"},"maxItems":20,"description":"filter
 determines whether the plugin needs to be executed at 
runtime","type":"array"},"error_response":{"oneOf":[{"type":"string"},{"type":"object"}]},"priority":{"description":"priority
 of plugins by customized 
order","type":"integer"}},"type":"object"},"cookie":{"default":"jwt","type":"string"},"query":{"default":"jwt","type":"string"},"header":{"default":"authorization","type":"string"},"disable":{"type":"boolean"}},"type":"object"}
   
   ```
   ps:My intention is to make the secret parameter of the jwt-auth plugin 
mandatory
   
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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