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

Adds support for JWK Sets #29

Merged
merged 3 commits into from
Jul 22, 2016
Merged

Adds support for JWK Sets #29

merged 3 commits into from
Jul 22, 2016

Conversation

bjmc
Copy link
Contributor

@bjmc bjmc commented Jul 15, 2016

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

raise JWSSignatureError()

except JWSSignatureError:
Copy link
Contributor Author

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
Copy link

codecov-io commented Jul 15, 2016

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 bjmc force-pushed the support_jwk_sets branch from ccb7407 to a001a7e Compare July 15, 2016 23:32
@bjmc
Copy link
Contributor Author

bjmc commented Jul 22, 2016

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

@mpdavis
Copy link
Owner

mpdavis commented Jul 22, 2016

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

lgtm.

@mpdavis mpdavis merged commit b7d3871 into mpdavis:master Jul 22, 2016
@mpdavis
Copy link
Owner

mpdavis commented Jul 22, 2016

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

Successfully merging this pull request may close these issues.

3 participants