We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e64fe48 commit 71e1424Copy full SHA for 71e1424
2 files changed
src/cryptojwt/jwx.py
@@ -11,7 +11,7 @@
11
from .jwk.rsa import load_x509_cert
12
from .jwk.rsa import RSAKey
13
from .exception import HeaderError
14
-from .utils import b64d
+from .utils import b64d, as_bytes
15
16
logger = logging.getLogger(__name__)
17
@@ -244,7 +244,7 @@ def _pick_alg(self, keys):
244
return alg
245
246
def _decode(self, payload):
247
- _msg = b64d(bytes(payload))
+ _msg = b64d(as_bytes(payload))
248
if "cty" in self:
249
if self["cty"] == "JWT":
250
_msg = json.loads(_msg)
tox.ini
@@ -1,5 +1,5 @@
1
[tox]
2
-envlist = py{35,36,37},quality
+envlist = py{36,37},quality
3
4
[testenv]
5
passenv = CI TRAVIS TRAVIS_*
@@ -10,6 +10,7 @@ extras = testing
10
deps =
codecov
pytest-cov
+ pytest-httpserver
[pep8]
max-line-length=100
0 commit comments