Skip to content

Commit

Permalink
Fix: Add kid from the JWK in the header instead of did:key
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 22, 2024
1 parent 19d6752 commit 620c954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdjwt/sdjwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_jwt(
**kwargs,
) -> str:
assert key is not None, "Key must be provided"
header = {"typ": "JWT", "alg": get_alg_for_key(key), "kid": kid, "jwk": key.export(private_key=False, as_dict=True)}
header = {"typ": "JWT", "alg": get_alg_for_key(key), "kid": key.key_id, "jwk": key.export(private_key=False, as_dict=True)}

iat = iat or int(time.time())
nbf = iat
Expand Down

0 comments on commit 620c954

Please sign in to comment.