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

Fix http 500 error in expired tokens #747

Merged
merged 6 commits into from
Feb 22, 2024
Merged

Fix http 500 error in expired tokens #747

merged 6 commits into from
Feb 22, 2024

Conversation

alfespa17
Copy link
Member

Fix #742

This will fix the http code 500 error when sending an expired jwt token, the change will capture correctly the exception "ExpiredJwtException" when executing "Jwts.parserBuilder().build().parseClaimsJwt" and correctly return http code 401

image

image

Copy link

sonarcloud bot commented Feb 22, 2024

@alfespa17 alfespa17 merged commit f55c468 into main Feb 22, 2024
4 checks passed
@alfespa17 alfespa17 deleted the token-expired-body branch February 22, 2024 22:37
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

Successfully merging this pull request may close these issues.

JSON Webtoken Expired exception
1 participant