Commit 44e32ab
authored
Upgrade PyJWT to 2.10.0+ (#655)
- Update PyJWT dependency from <2.10.0 to >=2.10.0
- Update requires-python from >=3.8 to >=3.9 (PyJWT 2.10.0 dropped Python 3.8)
- Remove Python 3.8 from test matrix
- Fix JWT token handling to use custom claim instead of 'sub'
PyJWT 2.10.0 added validation that the 'sub' (subject) claim must be a
string per RFC 7519. The code was storing a dict in the 'sub' claim,
which now fails with InvalidSubjectError. Changed to use a custom
'access_token_data' claim instead.1 parent 8001908 commit 44e32ab
File tree
4 files changed
+521
-3881
lines changed- jhub_apps/service
- ui
4 files changed
+521
-3881
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments