iamacnhero opened a new issue, #9889:
URL: https://github.com/apache/apisix/issues/9889
### Description
i configured jwt-auth like this:
{
"username": "microservices",
"plugins": {
"jwt-auth": {
"key": "admin-key",
"public_key": "$ENV://JWT_PUB_KEY",
"private_key": "$ENV://JWT_PRI_KEY",
"algorithm": "RS256",
"exp": 864000000
}
}
}
and my envrioment is correct:
<img width="565" alt="image"
src="https://github.com/apache/apisix/assets/775369/91f8e0b0-535a-4e38-a6cc-81dfb0d415bd">
but when I sign a token, I got problem like this:
<img width="352" alt="image"
src="https://github.com/apache/apisix/assets/775369/3fcf0822-f936-4b29-b29f-d93a1cb395a0">
the problem is : If I config in curl plaintext mode, the result is ok, if
config the env secret mode, then got "failed to sign jwt", can you give some
help , or hint?
### Environment
- APISIX version (run `apisix version`): 3.0.0
- Operating system (run `uname -a`): Linux 09348ca8e4e6 5.15.49-linuxkit #1
SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 GNU/Linux
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
openresty/1.21.4.1
- Plugin runner version, for issues related to plugin runners: jwt-auth
--
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]