Skip to content

Commit 9f60ffe

Browse files
committed
Setting usage doesn't make sense if you're importing a JWKS.
1 parent a6b0cbe commit 9f60ffe

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
@@ -764,13 +764,13 @@ def load(self, spec):
764764
return self
765765

766766

767-
def keybundle_from_local_file(filename, typ, usage, keytype="RSA"):
767+
def keybundle_from_local_file(filename, typ, usage=None, keytype="RSA"):
768768
"""
769769
Create a KeyBundle based on the content in a local file.
770770
771771
:param filename: Name of the file
772772
:param typ: Type of content
773-
:param usage: What the key should be used for
773+
:param usage: What the keys should be used for
774774
:param keytype: Type of key, e.g. "RSA", "EC". Only used with typ='der'
775775
:return: The created KeyBundle
776776
"""

0 commit comments

Comments
 (0)