TheShubhendra commented on issue #11365:
URL: https://github.com/apache/apisix/issues/11365#issuecomment-2509818658

   @untilyou2605 I have added a key field to the JWT payload. In the consumer 
configuration, you need to specify the value of the key that the `jwt-plugin` 
should verify.
   
   For example, if you have two types of API consumers—user and admin:
   
   The JWT for a user should include `key: "user"`.
   The JWT for an admin should include `key: "admin"`.
   
   When creating consumers in APISIX:
   Set `key: user` for the user consumer.
   Set `key: admin` for the admin consumer.
   This ensures that the `jwt-plugin` validates the JWT against the correct 
consumer type based on the key field.
   
   


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to