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 03:05:29 UTC
Re: [D] Help with superset login authentication [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Help with superset login authentication
<!-- Greeting -->
Hi @Anurag340! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Superset’s API does not support authenticating with Google OAuth2 tokens. While the UI login flow works with OAuth/OIDC, the API endpoints—including those for chart screenshots—only accept HS256-signed JWTs issued by Superset itself via the `/api/v1/security/login` endpoint. External OAuth tokens (like those from Google) will be rejected by the API, even if they work for UI login. There’s currently no documented method or endpoint to exchange a Google OAuth2 token for a Superset API token or session for programmatic access [reference](https://github.com/apache/superset/discussions/35281).
The endpoints you tried (`/api/v1/security/login`, `/api/v1/security/guest_token`, `/api/v1/database/oauth2`) are not designed for OAuth2-based API authentication. The `/api/v1/database/oauth2` endpoint is for handling OAuth2 callbacks and storing tokens for database connections, not for logging in or retrieving API tokens [reference](https://github.com/apache/superset/blob/master/superset/databases/api.py).
The screenshot endpoints (`/api/v1/chart/{pk}/cache_screenshot` and `/api/v1/chart/{pk}/screenshot/{digest}/`) are protected and require a valid authenticated session or JWT token from Superset [reference](https://github.com/apache/superset/blob/master/superset/charts/api.py).
Currently, there are no documented workarounds for authenticating API requests using Google OAuth2 tokens. If public access is acceptable, you could explore guest tokens, but these do not grant admin-level access and may not work for your use case. Some users resort to browser automation (e.g., Selenium) to obtain a session cookie, but this is not an official or robust solution.
Superset’s new MCP service infrastructure includes placeholders for future JWT authentication and user impersonation, but it does not yet support Google OAuth2 API authentication [reference](https://github.com/apache/superset/pull/35835).
If API OAuth2 support is critical for your workflow, you may want to track Superset updates or contribute to feature requests for broader authentication support.
<!-- 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=81890883-5634-456d-a6e2-07759d2d0cb8) [](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/36024#discussioncomment-14892966
----
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