Skip to content

Commit

Permalink
Apache Superset: Fix JWT problem by updating to flask-jwt-extended 4.7.1
Browse files Browse the repository at this point in the history
Also, configure `JWT_VERIFY_SUB = False`.
  • Loading branch information
amotl committed Nov 22, 2024
1 parent b1979b1 commit 2a17d1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/apache-superset/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apache-superset
pyjwt<2.10
flask-jwt-extended>=4.7.1
sqlalchemy-cratedb>=0.40.1
6 changes: 6 additions & 0 deletions application/apache-superset/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
# to start and you will see an error in the logs accordingly.
SECRET_KEY = 'VcKzHS4g2h+dP33tCbqOghtKaU37wvFECMhVqrfccaoI/17qh/j3+VDV'

# Configure JWT subsystem to not enforce that the sub claim is a string.
# https://github.com/crate/cratedb-examples/issues/741
# https://github.com/apache/superset/issues/30995
# https://github.com/dpgaspar/Flask-AppBuilder/issues/2287
JWT_VERIFY_SUB = False

# The SQLAlchemy connection string to your database backend
# This connection defines the path to the database that stores your
# superset metadata (slices, connections, tables, dashboards, ...).
Expand Down

0 comments on commit 2a17d1e

Please sign in to comment.