-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
mediawiki uses numerical values for subjects, e.g. "sub": 4.
Since version 2.10 pyjwt enforces subject to be of type string, see jpadilla/pyjwt#1017
This makes jwt.decode failing with Exeption: Subject must be a string
python-mwoauth/mwoauth/functions.py
Line 231 in 2cb6b71
| identity = jwt.decode(r.content, consumer_token.secret, |
Workaround:
Downgrage pyjwt<2.10
Solution:
set options = {"verify_sub": False} for jwt.decode
Metadata
Metadata
Assignees
Labels
No labels