-
Notifications
You must be signed in to change notification settings - Fork 73
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
verifyJWT
behavior when didDocument.verificationMethod
property has multiple public key sets
#267
Comments
I think it was mostly for convenience, in case there wasn't a kid specified in the header, but then the actual check for a kid was never added. Thanks for raising this issue! If a kid is mentioned in the header, it should be used, indeed. Would you like to contribute a PR with a fix? |
Also note, there have been some discussions of I would tend to think that, as Kristina points out, both absolute and relative |
I would imagine that it wouldn't be that hard to support both absolute and relative
I don't have enough of a grasp of how things should work for non DID issuers. I wouldn't be opposed to adding functionality for that situation too. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please correct me if I'm wrong but when
verificationMethod
property in the DID Document contains multiple public key sets, all of them are tested during signature verification until find the correct one. Some examples:ES256
did-jwt/src/VerifierAlgorithm.ts
Lines 79 to 86 in 4efd9a7
ES256K
did-jwt/src/VerifierAlgorithm.ts
Lines 106 to 113 in 4efd9a7
Ed25519
did-jwt/src/VerifierAlgorithm.ts
Lines 176 to 178 in 4efd9a7
Could you please explain why library is doing this instead of using, for example, JWT's
header.kid
to take just one public key from theauthenticators
array?Thank you!
The text was updated successfully, but these errors were encountered: