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

Wrap IllegalArgumentException into JWTDecodeException #426

Merged
merged 2 commits into from
Jun 24, 2020
Merged

Conversation

lbalmaceda
Copy link
Contributor

Changes

Bumping commons-codec to 1.14 introduced a runtime exception when the input was not valid base 64. This PR bumps the commons-codec dependency to the latest version and handles internally that exception, wrapping it into a JWTDecodeException (which is what it represents).

References

Closes #415

Testing

  • This change adds test coverage
  • This change has been tested on the latest version of Java or why not

Checklist

@lbalmaceda lbalmaceda added CH: Fixed small This PR may require low effort to action, or contains few changes to review labels Jun 12, 2020
@lbalmaceda lbalmaceda added this to the v3-Next milestone Jun 12, 2020
@lbalmaceda lbalmaceda requested a review from a team June 12, 2020 19:44
@lbalmaceda lbalmaceda merged commit 5dbe4e8 into master Jun 24, 2020
@lbalmaceda lbalmaceda deleted the fix-iae branch June 24, 2020 19:49
@jimmyjames jimmyjames modified the milestones: v3-Next, 3.11.0 Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Fixed small This PR may require low effort to action, or contains few changes to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw JWTDecodeException in JWTDecoder when Base64 decoding fails
2 participants