Open fzhan opened 1 month ago
There's a piece of code written for superset to take thumbnail images which bypass the authentication, perhaps we can leverage the same code?
from superset.utils.urls import headless_url
from superset.utils.machine_auth import MachineAuthProvider
def auth_driver(driver, user):
# Setting cookies requires doing a request first, but /login is redirected to oauth provider, and stuck there.
driver.get(headless_url("/doesnotexist"))
cookies = MachineAuthProvider.get_auth_cookies(user)
for cookie_name, cookie_val in cookies.items():
driver.add_cookie(dict(name=cookie_name, value=cookie_val))
return driver
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
Describe the bug Superset is setup with AzureAD only, tried to provide both username and login for AzureAD and had ldap as provider but failed with the follow message:
datahub.ingestion.run.pipeline.PipelineInitError: Failed to configure the source (superset): 'access_token'
To Reproduce Steps to reproduce the behavior:
source: type: superset config: connect_uri: 'http://superset.data-platform:8088' display_uri: 'https://bi.company' username: user@company password: password-from-ad provider: ldap
Expected behavior Provide suggestions for Superset ingestion with ldap enabled as only access
Desktop (please complete the following information):
Additional context Datahub is running on a local k8s cluster, with superset in another namespace.