Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: When attempting to access the JWT authentication sign endpoint exposed through the public API, a 404 Not Found error is returned. #11733

Closed
Fsystem opened this issue Nov 11, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Fsystem
Copy link

Fsystem commented Nov 11, 2024

Description

When attempting to access the JWT authentication sign endpoint exposed through the public API, a 404 Not Found error is returned.and public-api is enabled both in apisix config.yaml and apisix-dashboard config.yaml
4673E913-4528-4469-A07E-5FB1A5751F9C

Environment

  • APISIX version (run apisix version):apache/apisix:3.11.0-debian
  • Operating system (run uname -a):Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):bitnami/etcd:3.5.16
  • APISIX Dashboard version, if relevant:apache/apisix-dashboard:3.0.1-alpine
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@dosubot dosubot bot added the bug Something isn't working label Nov 11, 2024
@mikyll
Copy link
Contributor

mikyll commented Nov 11, 2024

That's because the JWT signing endpoint was removed in APISIX v3.11.0.

You can read the change in CHANGELOG#3.11.0, and in commits history, with commit 1773655

@Fsystem
Copy link
Author

Fsystem commented Nov 11, 2024

That's because the JWT signing endpoint was removed in APISIX v3.11.0.

You can read the change in CHANGELOG#3.11.0, and in commits history, with commit 1773655

Thank you, I understand now. Are there other ways to obtain a JWT signature

@mikyll
Copy link
Contributor

mikyll commented Nov 12, 2024

Are there other ways to obtain a JWT signature

@Fsystem as of now, I don't think APISIX provide any out-of-the-box. However, you can always write a custom plugin, e.g. jwt-sign, and expose a public api the same way that jwt-auth did (you can copy or adapt the code from the commit I provided above).

Check the docs for further info: APISIX Plugin Development | register public API

@Fsystem
Copy link
Author

Fsystem commented Nov 13, 2024

@mikyll Thanks, I will give it a try.

@Fsystem Fsystem closed this as completed Nov 13, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Apache APISIX backlog Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants