mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: skip DB filter when doing OAuth2 (#32486)
This commit is contained in:
@@ -1443,7 +1443,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
state = decode_oauth2_state(parameters["state"])
|
||||
|
||||
# exchange code for access/refresh tokens
|
||||
database = DatabaseDAO.find_by_id(state["database_id"])
|
||||
database = DatabaseDAO.find_by_id(state["database_id"], skip_base_filter=True)
|
||||
if database is None:
|
||||
return self.response_404()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user