-
根据教程配置一个获取token的路由 然后创建两个不同的jwt-auth Consumer,测试后发现只有最新创建的会起作用,Router如何去指定使用某一个Consumer? |
Beta Was this translation helpful? Give feedback.
Answered by
tokers
Jan 11, 2023
Replies: 1 comment 5 replies
-
The args |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
hongbofan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The args
key
must be specified when you call/apisix/plugin/jwt/sign
, and this is how APISIX find the corresponding consumers (via thekey
mapping).