vincentwc edited a comment on issue #4274:
URL: https://github.com/apache/apisix/issues/4274#issuecomment-844726675
> I have not reproduced your problem locally, you should provide your steps
to reproduce it.
i reproduced again.it seems like jwt-auth with "algorithm": "RS256" occured
problem. how to get token when use jwt-auth whit RS256 algorithm?
Create consumer json show as below:
{
"username": "kerouac",
"plugins": {
"jwt-auth": {
"key": "user-key-key",
"public_key": "-----BEGIN PUBLIC KEY-----\n……\n-----END PUBLIC
KEY-----",
"private_key": "-----BEGIN RSA PRIVATE KEY-----\n……\n-----END
RSA PRIVATE KEY-----",
"algorithm": "RS256"
}
}
}
Get token uri is apisix/plugin/jwt/sign?key=user-key-key and whit GET Method
,the response is failed to sign jwt ,
it could get response when use defalut algorithm but error use RS256
--
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]