Skip to content

Commit 1a0d176

Browse files
committed
A bit more doc.
1 parent dbbee89 commit 1a0d176

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/jws.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,13 @@ Or
8080

8181
In which case the check of the signing algorithm is done by default.
8282

83+
If you have Key Jar instead of a simple set of keys you can do (not showing how the key jar was initiated here)::
84+
85+
>>> _verifier = factory(_jws, alg=RS256")
86+
>>> keys = key_jar.get_jwt_verify_keys(_verifier.jwt)
87+
>>> msg = _verifier.verify_compact(token, keys)
88+
89+
This is a trick that is used in :py:class:`cryptojwt.jwt.JWT`
90+
8391

8492
.. _RFC7515: https://tools.ietf.org/html/rfc7515

0 commit comments

Comments
 (0)