mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: more DB OAuth2 fixes (#37398)
This commit is contained in:
@@ -610,7 +610,10 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
re-run the query after authorization.
|
||||
"""
|
||||
tab_id = str(uuid4())
|
||||
default_redirect_uri = url_for("DatabaseRestApi.oauth2", _external=True)
|
||||
default_redirect_uri = app.config.get(
|
||||
"DATABASE_OAUTH2_REDIRECT_URI",
|
||||
url_for("DatabaseRestApi.oauth2", _external=True),
|
||||
)
|
||||
|
||||
# The state is passed to the OAuth2 provider, and sent back to Superset after
|
||||
# the user authorizes the access. The redirect endpoint in Superset can then
|
||||
|
||||
Reference in New Issue
Block a user