How to can service-accounts use the Superset API when OAuth is enabled? #35961
Replies: 1 comment
-
|
Superset’s API only accepts HS256-signed JWTs issued by Superset itself, and the 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. Guest tokens ( 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. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In an Superset installation with OAuth enabled how would one let a script interact with the API?
Is there a way for the script to request a Superset-native HS256 token?
If I understand correctly /api/v1/security/login cannot be used when OAuth is enabled?
(Is that event intended to get an access token? I tried it with local db auth, then Superset rejected the token with "unsupported algorithm" error.)
Thanks!
Bastiaan Bakker
Beta Was this translation helpful? Give feedback.
All reactions