Skip to content

Commit 91320cc

Browse files
committed
Return private setup whether one asked for it or not.
1 parent d68d3c1 commit 91320cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cryptojwt/key_bundle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def __str__(self):
407407

408408
def jwks(self, private=False):
409409
"""
410-
Create a JWKS
410+
Create a JWKS as a JSON document
411411
412412
:param private: Whether private key information should be included.
413413
:return: A JWKS JSON representation of the keys in this bundle
@@ -418,7 +418,7 @@ def jwks(self, private=False):
418418
if private:
419419
key = k.serialize(private)
420420
else:
421-
key = k.to_dict()
421+
key = k.serialize()
422422
for k, v in key.items():
423423
key[k] = as_unicode(v)
424424
keys.append(key)

0 commit comments

Comments
 (0)