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:02 UTC
Re: [D] How to can service-accounts use the Superset API when OAuth is enabled? [superset]
GitHub user dosubot[bot] edited a comment on the discussion: How to can service-accounts use the Superset API when OAuth is enabled?
<!-- Answer -->
Superset’s API only accepts HS256-signed JWTs issued by Superset itself, and the `/api/v1/security/login` endpoint only works with `db` or `ldap` providers—not with OAuth. When OAuth is enabled, tokens from external providers (like Zitadel) are usually RS256-signed and will be rejected by the API with an “unsupported algorithm” error. This is hardcoded and not configurable [discussion](https://github.com/apache/superset/discussions/35281).
There’s currently no supported way for a script or service account to request a Superset-native HS256 token when OAuth is enabled. API automation requires using DB/LDAP users to obtain tokens via the login endpoint. If you need to use OAuth tokens for API access, you’d have to implement a custom SecurityManager and middleware to validate those tokens, which is an advanced, non-standard setup [details](https://github.com/apache/superset/discussions/34278).
Guest tokens (`/api/v1/security/guest_token/`) are available, but they’re intended for embedded dashboard scenarios, not general API access.
In short: with OAuth enabled, scripts and service accounts cannot use the Superset API unless you fall back to DB/LDAP authentication or build a custom authentication integration. The “unsupported algorithm” error means the API is rejecting non-HS256 tokens as designed [details](https://github.com/apache/superset/discussions/35281).
<!-- 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).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-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=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=632e7ee8-1e29-42a2-a57b-889a3069ca85) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-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=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/35961#discussioncomment-14861322
----
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