You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 02:52:35 UTC
Re: [D] Chromedriver requires login to take screenshots for reports [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Chromedriver requires login to take screenshots for reports
<!-- Answer -->
Yes, the Selenium-driven Chrome browser (via chromedriver) used by Superset to generate report screenshots does need to be logged in if your Superset deployment requires authentication. Superset handles this programmatically: before taking a screenshot, it logs in a user using Flask-Login, retrieves the session cookies, and injects them directly into the Selenium WebDriver session—so the browser is authenticated as that user. This is managed by the MachineAuthProvider class and related code. By default, it does not simulate a UI login; it sets cookies directly. You can override this behavior with a custom function using the WEBDRIVER_AUTH_FUNC config if you want to automate the login form instead, but authentication is always required unless you explicitly allow anonymous access in your Superset instance. More details and code references are available in the [MachineAuthProvider implementation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superse
t/utils/machine_auth.py) and [webdriver integration](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/webdriver.py) ([discussion](https://github.com/apache/superset/issues/33731)).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=d18eadc5-7871-4684-8ef4-0d878b05ce0e) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34131#discussioncomment-13728301
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org