Skip to content

Commit 1846f91

Browse files
committed
Document how to work with an encrypted private key
1 parent abc7bd8 commit 1846f91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

oauth2cli/assertion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ def __init__(self, key, algorithm, sha1_thumbprint=None, headers=None):
6363
6464
Args:
6565
66-
key (str): The key for signing, e.g. a base64 encoded private key.
66+
key (str):
67+
An unencrypted private key for signing, in a base64 encoded string.
68+
It can also be a cryptography ``PrivateKey`` object,
69+
which is how you can work with a previously-encrypted key.
70+
See also https://github.com/jpadilla/pyjwt/pull/525
6771
algorithm (str):
6872
"RS256", etc.. See https://pyjwt.readthedocs.io/en/latest/algorithms.html
6973
RSA and ECDSA algorithms require "pip install cryptography".

0 commit comments

Comments
 (0)