Skip to content

Adds support for JWK Sets - #29

Merged
mpdavis merged 3 commits into
mpdavis:masterfrom
bjmc:support_jwk_sets
Jul 22, 2016
Merged

Adds support for JWK Sets#29
mpdavis merged 3 commits into
mpdavis:masterfrom
bjmc:support_jwk_sets

Conversation

@bjmc

@bjmcbjmc commented Jul 15, 2016

Copy link
Copy Markdown
Contributor

Allows passing multiple possible keys in the form of a JWK set to jws.verify()

Comment threadjose/jws.py
if not _sig_matches_keys(keys, signing_input, signature, alg):
raise JWSSignatureError()

except JWSSignatureError:

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hesitant to change this, but why were you catching JWSSignatureError here, and then re-raising a generic JWSError with text explaining it's a signature failure? Since JWSSignatureError is already a subclass of JWSError, why not just let the JWSSignatureError propagate up?

@codecov-io

codecov-io commented Jul 15, 2016

Copy link
Copy Markdown

Current coverage is 95.51%

Merging #29 into master will increase coverage by 0.13%

@@ master #29 diff @@
==========================================
Files 7 7 Lines 454 468 +14 Methods 0 0 Messages 0 0 Branches 0 0 ==========================================
+ Hits 433 447 +14 
Misses 21 21 Partials 0 0 

Powered by Codecov. Last updated by 048377d...6ed322d

@bjmc
bjmcforce-pushed the support_jwk_sets branch from ccb7407 to a001a7eCompareJuly 15, 2016 23:32
@bjmc

bjmc commented Jul 22, 2016

Copy link
Copy Markdown
ContributorAuthor

@mpdavis Does this look okay? Any changes you'd like to see?

@mpdavis

Copy link
Copy Markdown
Owner

@bjmc My apologies for taking so long to get to these.

lgtm.

@mpdavis
mpdavis merged commit b7d3871 into mpdavis:masterJul 22, 2016
@mpdavis

Copy link
Copy Markdown
Owner

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@bjmc@codecov-io@mpdavis