We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224e72a commit 10ac93fCopy full SHA for 10ac93f
1 file changed
src/joserfc/_rfc7516/models.py
@@ -156,6 +156,9 @@ class GeneralJSONEncryption(BaseJSONEncryption):
156
157
def add_recipient(self, header: Header | None = None, key: Key | None = None) -> None:
158
recipient = Recipient(self, header, key)
159
+ if key:
160
+ key.ensure_kid()
161
+ recipient.set_kid(t.cast(str, key.kid))
162
self.recipients.append(recipient)
163
164
0 commit comments