-
Notifications
You must be signed in to change notification settings - Fork 64
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
add DPoP keygen and thumbprint #186
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #186 +/- ##
==========================================
+ Coverage 71.84% 72.40% +0.56%
==========================================
Files 23 23
Lines 1900 1939 +39
Branches 233 236 +3
==========================================
+ Hits 1365 1404 +39
Misses 525 525
Partials 10 10 ☔ View full report in Codecov by Sentry. |
alphabetize import and clarify base64 test case add keypair generation and thumbprint confirmation
type KeyPair = {| | ||
privateKey: mixed, | ||
publicKey: mixed, | ||
|}; |
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.
not yet supported in flow - https://github.com/facebook/flow/blame/aa9112fd181e484ef63db0f7c2593d0c547046e6/lib/bom.js#L40-L47
usages | ||
); | ||
|
||
keyPair = keyPair || { publicKey, privateKey }; |
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.
^ this is for https://eslint.org/docs/latest/rules/require-atomic-updates
we know no other function mutates keyPair
but eslint wanted me to read the value one last time before reassignment.
This PR is a follow-up to #184 and implements key pair generation and a
jsonWebKeyThumbprint
function that serializes and hashes a JSON web key.The next (last) PR will implement the JWT creation and signature.