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

Expand exception management in JWHelper implementations for comprehensive error messages #326

Open
Zicchio opened this issue Jan 15, 2025 · 0 comments
Milestone

Comments

@Zicchio
Copy link
Collaborator

Zicchio commented Jan 15, 2025

When decrypting or verifying a token, it might be useful to dedicate specific exception for malformed input (ex not a jwt) vs an invalid token (non verified signature, expired token, exc). This is both at the code level AND in the docstring methods.

This is not a strong requirement, but would be eventually nice to have so that HTTP Handlers using the token verifier / token decrypter can yield meaningful and informative error messages (with the proper concern for minimal information disclosure), which is currently somewhat hard to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants