We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mediawiki uses numerical values for subjects, e.g. "sub": 4.
"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
jwt.decode
Exeption: Subject must be a string
python-mwoauth/mwoauth/functions.py
Line 231 in 2cb6b71
Workaround: Downgrage pyjwt<2.10
Solution: set options = {"verify_sub": False} for jwt.decode
options = {"verify_sub": False}
The text was updated successfully, but these errors were encountered:
set options={"verify_sub": False}
ed16f68
Refs: mediawiki-utilities#51
Successfully merging a pull request may close this issue.
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 withExeption: Subject must be a string
python-mwoauth/mwoauth/functions.py
Line 231 in 2cb6b71
Workaround:
Downgrage pyjwt<2.10
Solution:
set
options = {"verify_sub": False}
forjwt.decode
The text was updated successfully, but these errors were encountered: