Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 3d9747d

Browse files
committed
Actually test jose verification output
1 parent e1177de commit 3d9747d

File tree

11 files changed

+90
-70
lines changed

11 files changed

+90
-70
lines changed
13 Bytes
Binary file not shown.

docs/_build/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 46d33ac046d743c94c47e2c5f736b5b7
3+
config: 60dd8fdaaeac31bd0b3eae2504a3b513
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_build/html/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '3.3.1',
3+
VERSION: '3.3.2',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/_build/html/genindex.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Index &#8212; python-jwt 3.3.1 documentation</title>
8+
<title>Index &#8212; python-jwt 3.3.2 documentation</title>
99
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -24,7 +24,7 @@ <h3>Navigation</h3>
2424
<li class="right" >
2525
<a href="py-modindex.html" title="Python Module Index"
2626
>modules</a> |</li>
27-
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.1 documentation</a> &#187;</li>
27+
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.2 documentation</a> &#187;</li>
2828
<li class="nav-item nav-item-this"><a href="">Index</a></li>
2929
</ul>
3030
</div>
@@ -121,7 +121,7 @@ <h3>Navigation</h3>
121121
<li class="right" >
122122
<a href="py-modindex.html" title="Python Module Index"
123123
>modules</a> |</li>
124-
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.1 documentation</a> &#187;</li>
124+
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.2 documentation</a> &#187;</li>
125125
<li class="nav-item nav-item-this"><a href="">Index</a></li>
126126
</ul>
127127
</div>

docs/_build/html/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>python_jwt module &#8212; python-jwt 3.3.1 documentation</title>
8+
<title>python_jwt module &#8212; python-jwt 3.3.2 documentation</title>
99
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -24,7 +24,7 @@ <h3>Navigation</h3>
2424
<li class="right" >
2525
<a href="py-modindex.html" title="Python Module Index"
2626
>modules</a> |</li>
27-
<li class="nav-item nav-item-0"><a href="#">python-jwt 3.3.1 documentation</a> &#187;</li>
27+
<li class="nav-item nav-item-0"><a href="#">python-jwt 3.3.2 documentation</a> &#187;</li>
2828
<li class="nav-item nav-item-this"><a href="">python_jwt module</a></li>
2929
</ul>
3030
</div>
@@ -203,7 +203,7 @@ <h3>Navigation</h3>
203203
<li class="right" >
204204
<a href="py-modindex.html" title="Python Module Index"
205205
>modules</a> |</li>
206-
<li class="nav-item nav-item-0"><a href="#">python-jwt 3.3.1 documentation</a> &#187;</li>
206+
<li class="nav-item nav-item-0"><a href="#">python-jwt 3.3.2 documentation</a> &#187;</li>
207207
<li class="nav-item nav-item-this"><a href="">python_jwt module</a></li>
208208
</ul>
209209
</div>

docs/_build/html/py-modindex.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Python Module Index &#8212; python-jwt 3.3.1 documentation</title>
8+
<title>Python Module Index &#8212; python-jwt 3.3.2 documentation</title>
99
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -31,7 +31,7 @@ <h3>Navigation</h3>
3131
<li class="right" >
3232
<a href="#" title="Python Module Index"
3333
>modules</a> |</li>
34-
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.1 documentation</a> &#187;</li>
34+
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.2 documentation</a> &#187;</li>
3535
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
3636
</ul>
3737
</div>
@@ -89,7 +89,7 @@ <h3>Navigation</h3>
8989
<li class="right" >
9090
<a href="#" title="Python Module Index"
9191
>modules</a> |</li>
92-
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.1 documentation</a> &#187;</li>
92+
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.2 documentation</a> &#187;</li>
9393
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
9494
</ul>
9595
</div>

docs/_build/html/search.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Search &#8212; python-jwt 3.3.1 documentation</title>
8+
<title>Search &#8212; python-jwt 3.3.2 documentation</title>
99
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1111

@@ -30,7 +30,7 @@ <h3>Navigation</h3>
3030
<li class="right" >
3131
<a href="py-modindex.html" title="Python Module Index"
3232
>modules</a> |</li>
33-
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.1 documentation</a> &#187;</li>
33+
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.2 documentation</a> &#187;</li>
3434
<li class="nav-item nav-item-this"><a href="">Search</a></li>
3535
</ul>
3636
</div>
@@ -81,7 +81,7 @@ <h3>Navigation</h3>
8181
<li class="right" >
8282
<a href="py-modindex.html" title="Python Module Index"
8383
>modules</a> |</li>
84-
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.1 documentation</a> &#187;</li>
84+
<li class="nav-item nav-item-0"><a href="index.html">python-jwt 3.3.2 documentation</a> &#187;</li>
8585
<li class="nav-item nav-item-this"><a href="">Search</a></li>
8686
</ul>
8787
</div>

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# The short X.Y version.
5353
version = '3.3'
5454
# The full version, including alpha/beta/rc tags.
55-
release = '3.3.1'
55+
release = '3.3.2'
5656

5757
# The language for content autogenerated by Sphinx. Refer to documentation
5858
# for a list of supported languages.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def read(name):
66

77
setup(
88
name='python_jwt',
9-
version='3.3.1',
9+
version='3.3.2',
1010
description="Module for generating and verifying JSON Web Tokens",
1111
long_description=read('README.md'),
1212
long_description_content_type='text/markdown',

test/fixtures.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ async function generate(time, header, claims, expires, not_before, key) {
3232
}
3333

3434
async function verify(time, sjwt, iat_skew, key, alg) {
35-
const { header, payload } = jwtVerify(sjwt, await import_key(key, alg), {
35+
const { protectedHeader, payload } = await jwtVerify(sjwt, await import_key(key, alg), {
3636
algorithms: [ alg ],
3737
clockTolerance: iat_skew,
3838
currentDate: new Date(time * 1000)
3939
});
40-
process.stdout.write(JSON.stringify([header, payload]));
40+
process.stdout.write(JSON.stringify([protectedHeader, payload]));
4141
}
4242

4343
exports.generate = generate;

0 commit comments

Comments
 (0)