-
Notifications
You must be signed in to change notification settings - Fork 62
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
Infer the JWS signing algorithm name by looking at the provided key #247
Conversation
This handles cases where the JWS message or the key do not have a proper `alg` header. The `alg` header is optional[0], so some identity providers may not supply it (such as Microsoft Identity[1]) [0]: https://datatracker.ietf.org/doc/html/rfc7517#section-4.4 [1]: https://login.microsoftonline.com/common/discovery/v2.0/keys Signed-off-by: Erik Haugrud <[email protected]>
d1ccea6
to
b264d29
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #247 +/- ##
=======================================
Coverage ? 90.31%
=======================================
Files ? 24
Lines ? 1569
Branches ? 0
=======================================
Hits ? 1417
Misses ? 108
Partials ? 44
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This LGTM!
Mind addressing the lint errors and adding some comments?
f0a17b5
to
54013aa
Compare
Signed-off-by: Erik Haugrud <[email protected]>
Signed-off-by: Erik Haugrud <[email protected]>
54013aa
to
a44ea63
Compare
Signed-off-by: Erik Haugrud <[email protected]>
75caf08
to
03ec224
Compare
@nacx thanks for the review! I've added a couple comments and fixed the linter issues. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erik-h, nacx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thx! |
This handles cases where the JWS message or the key do not have a proper
alg
header. Thealg
header is optional, so some identity providers may not supply it (such as Microsoft Identity).