Skip to content
New issue

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

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

Already on GitHub? # to your account

JWT with invalid iss #576

Closed
tecnobrat opened this issue Sep 30, 2015 · 0 comments · Fixed by #578
Closed

JWT with invalid iss #576

tecnobrat opened this issue Sep 30, 2015 · 0 comments · Fixed by #578
Assignees

Comments

@tecnobrat
Copy link

If you configure the JWT plugin, and then provide a JWT with an iss value that does not match any of your credentials, you get a nasty 500 error:

2015/09/30 17:27:04 [error] 62#0: *69 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/kong/plugins/jwt/access.lua:85: attempt to index local 'jwt_secret' (a nil value)
stack traceback:
coroutine 0:
    /usr/local/share/lua/5.1/kong/plugins/jwt/access.lua: in function 'execute'
    /usr/local/share/lua/5.1/kong/plugins/jwt/handler.lua:12: in function 'access'
    /usr/local/share/lua/5.1/kong.lua:191: in function 'exec_plugins_access'
    access_by_lua(nginx.conf:89):1: in function <access_by_lua(nginx.conf:89):1>, client: 192.168.99.1, server: _, request: "GET /content-pass/characters.json HTTP/1.1", host: "192.168.99.100:8000"
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants