-
Notifications
You must be signed in to change notification settings - Fork 14
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
DPoP Proof JWT should not have kid within its JWT header paramenters #307
Comments
Currently, the kid is automatically added by the cryptojwt library during key generation. For example, in the test_dpop.py file, we use the method new_ec_key:
This method automatically assigns a kid if none is explicitly provided, through the _rk.add_kid() call in the library. The question is: do we want to remove the kid afterward to comply with the DPoP specification, or is it acceptable to keep it as a SHOULD NOT meaning? If we decide to remove the kid, we could implement an explicit solution in both the tests and the DPoPIssuer class to ensure the parameter is excluded from the JWT header. @peppelinux looking for confirmation on how to proceed to align with the specification and avoid any ambiguity. |
before using the key for the signature, remove the kid from the EC object |
We already have a flag to include (or drop) a kid from a token header; but I'm not if it is unit tested and the logic might not be 100% sound - maybe start from there
eudi-wallet-it-python/pyeudiw/jwt/jws_helper.py Lines 123 to 131 in 68246ab
|
The current implementation of DPoP (Demonstration of Proof-of-Possession) is incorrect. It requires the inclusion of a kid (Key ID) in the dpop+jwt (JSON Web Token), which is not necessary according to the DPoP specification.
The text was updated successfully, but these errors were encountered: