v0.3.0
Added
- Session-cookie authentication for SSO/OAuth instances. Where Superset sits behind OAuth/OIDC/SAML, REST password login is unavailable. Set
SUPERSET_SESSION_COOKIE(andSUPERSET_SESSION_COOKIE_NAMEwhen the instance renames the cookie) and the server sends a browser session cookie on every request, fetching CSRF tokens with it. Cookie mode takes precedence overSUPERSET_USERNAME/SUPERSET_PASSWORD; a 401 in this mode says the cookie needs refreshing, since an expired SSO session cannot be renewed server-side. - First test suite (pytest + respx, 21 tests) covering both auth strategies, client wiring and the 401 paths. CI runs it.
Changed
- Authentication is an
AuthStrategyprotocol with two implementations (JwtAuthManager,CookieAuthManager) selected bybuild_auth_strategy().SupersetClientno longer knows about bearer tokens.AuthManagerwas renamed toJwtAuthManager.
Fixed
- Authentication failures on mutating requests escaped as raw
httpx.HTTPStatusError, bypassingSupersetAPIErrorand the cookie-refresh hint. All auth and CSRF failures are now wrapped consistently. post_formbuilt its headers by hand and missed the same error handling; it now shares_get_headers. Error-detail extraction is a single helper used by_request,get_rawandpost_form.
Thanks to @nail-k1 for the feature.