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 JWSErrors in jwt.decode() #20

Merged

Conversation

0x64746b
Copy link
Contributor

So far exceptions raised in jws.verify() weren't caught in the above
function, which led to it raising (undocumented) exceptions from the
underlying module.

This commit transforms said exceptions. This includes cases of invalid
payload padding, error handling for which had previously been attached
to the json.loads() call.

So far exceptions raised in `jws.verify()` weren't caught in the above
function, which led to it raising (undocumented) exceptions from the
underlying module.

This commit transforms said exceptions. This includes cases of invalid
payload padding, error handling for which had previously been attached
to the `json.loads()` call.
@codecov-io
Copy link

codecov-io commented Apr 27, 2016

Current coverage is 94.24%

Merging #20 into master will increase coverage by +<.01%

@@             master        #20   diff @@
==========================================
  Files             7          7          
  Lines           415        417     +2   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            391        393     +2   
  Misses           24         24          
  Partials          0          0          

Powered by Codecov. Last updated by f5fee10

@mpdavis
Copy link
Owner

mpdavis commented Apr 28, 2016

lgtm

@mpdavis mpdavis merged commit a7fb714 into mpdavis:master Apr 28, 2016
@0x64746b 0x64746b deleted the feature/catch-jws-errors-in-jwt-decode branch April 28, 2016 00:57
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.

None yet

3 participants