Skip to content
New issue

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

fix(cfg): fix borked /v1/security/*token API endpoints by disabling verify sub claim in JWT to be string type in PyJWT >= 2.10 #32244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,12 @@ class ExtraDynamicQueryFilters(TypedDict, total=False):
# connection via the UI (without downtime).
CATALOGS_SIMPLIFIED_MIGRATION: bool = False

# Configure JWT subsystem to not enforce that the sub claim is a string
# Set this variable to avoid breaking `/api/security` endpoints
# TODO: remove this variable once pyjwt resolved the issue.
# https://github.com/jpadilla/pyjwt/issues/1017
# https://github.com/dpgaspar/Flask-AppBuilder/issues/2287
JWT_VERIFY_SUB = False

# -------------------------------------------------------------------
# * WARNING: STOP EDITING HERE *
Expand Down
Loading