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

Invalid JWT token results in 500 Internal Server Error #1329

Closed
nguilford opened this issue Jun 22, 2016 · 2 comments
Closed

Invalid JWT token results in 500 Internal Server Error #1329

nguilford opened this issue Jun 22, 2016 · 2 comments
Assignees
Milestone

Comments

@nguilford
Copy link

Submitting a poorly formatted jwt token results in a 500 Internal Server Error instead of a 401.

Kong Version: 0.8.3

Platform: CentOS on Docker (from mashape/kong:0.8.3 docker image)

Steps to reproduce:

  1. Create a new proxy api in kong
  2. Enable jwt for your new api
  3. Submit a request to your proxy api with the following header "Authorization: Bearer X"

Result:
500 Internal Server Error

Expected:
401 Unauthorized or 403 Forbidden

It looks like this is known, given the TODO on line 70 of kong/plugins/jwt/handler.lua in #1247. Since it's not clear whether or not it will be addressed in that PR, I am opening this issue to track it separately.

@Garethp
Copy link

Garethp commented Jun 24, 2016

If PR #1333 gets merged in to #1247, this will be addressed

@Tieske Tieske self-assigned this Jul 13, 2016
@Tieske Tieske added this to the 0.9 milestone Jul 13, 2016
@Tieske
Copy link
Member

Tieske commented Jul 13, 2016

fixed in #1362

@Tieske Tieske closed this as completed Jul 13, 2016
@Tieske Tieske reopened this Jul 13, 2016
@Tieske Tieske closed this as completed Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants