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

Catch JWT errors and return them gracefully #147

Open
zwolf opened this issue Feb 28, 2020 · 0 comments
Open

Catch JWT errors and return them gracefully #147

zwolf opened this issue Feb 28, 2020 · 0 comments

Comments

@zwolf
Copy link
Member

zwolf commented Feb 28, 2020

A user makes a request to the API and includes their Authorization header. The token contained therein was encoded with the Panoptes staging key, and the first attempt to verify it (via the :authenticated_admin? method in the PanoptesApi service) causes the jwt gem to raise a JWT::VerificationError.

Currently this causes a 500 and a report to Sentry. This error, or maybe a more comprehensive group of potential JWT:: errors, should be caught and serialized back.

@zwolf zwolf moved this to Maintenance in TOVE Dev Plan Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Maintenance
Development

No branches or pull requests

1 participant