Skip to content

Commit ddafa27

Browse files
committed
Merge branch 'master' of github.com:openid/JWTConnect-Python-CryptoJWT
2 parents 15c8afd + 9ba10ad commit ddafa27

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/cryptojwt/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
from .utils import b64d
99
from .utils import split_token
1010

11+
from cryptojwt.jwk import JWK
12+
from cryptojwt.jws.jws import JWS
13+
from cryptojwt.jwe.jwe import JWE
14+
from cryptojwt.jwt import JWT
15+
from cryptojwt.key_jar import KeyJar
16+
from cryptojwt.key_bundle import KeyBundle
17+
1118
try:
1219
from builtins import zip
1320
from builtins import hex

src/cryptojwt/jws/jws.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ def verify_compact_verbose(self, jws=None, keys=None, allow_none=False,
197197
if isinstance(self['alg'], list):
198198
if _alg not in self["alg"] :
199199
raise SignerAlgError(
200-
"Wrong signing algorithm, expected {} go {}".format(
200+
"Wrong signing algorithm, expected {} got {}".format(
201201
self['alg'], _alg))
202202
elif _alg != self['alg']:
203203
raise SignerAlgError(
204-
"Wrong signing algorithm, expected {} go {}".format(
204+
"Wrong signing algorithm, expected {} got {}".format(
205205
self['alg'], _alg))
206206

207207
if sigalg and sigalg != _alg:
@@ -374,7 +374,7 @@ def _is_json_serialized_jws(self, json_jws):
374374

375375
def _is_compact_jws(self, jws):
376376
"""
377-
Check if we've go a compact signed JWT
377+
Check if we've got a compact signed JWT
378378
379379
:param jws: The message
380380
:return: True/False

0 commit comments

Comments
 (0)