Skip to content

Commit

Permalink
fix(cfg): disable verify sub claim in JWT to be string type in PyJWT …
Browse files Browse the repository at this point in the history
…>= 2.10

Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber committed Feb 13, 2025
1 parent 21348c4 commit 1ad857e
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 1ad857e

Please sign in to comment.