GitHub user dosubot[bot] added a comment to the discussion: Superset SSO login is not working after upgrading it to 6.1.0rc1, lending it to username and password page
<!-- Answer --> The issue is a breaking change in Superset 6.x related to how custom authentication views are registered. In v5, setting `self.authdbview = AuthSAMLView` in your security manager was enough — Flask-AppBuilder would pick it up automatically. **In v6, that attribute is ignored** because Superset now unconditionally registers its own `SupersetAuthView` at `/login`, which renders a React-based username/password form [[1]](https://github.com/apache/superset/discussions/38199). **The fix** (available via [PR #39098](https://github.com/apache/superset/pull/39098)) is to set `register_superset_auth_view = False` on your security manager and explicitly register your custom view by overriding `register_views()`: ```python class SAMLSSOSecurityManager(SupersetSecurityManager): register_superset_auth_view = False # Prevents default login view registration def __init__(self, appbuilder): super().__init__(appbuilder) if self.auth_type == AUTH_DB and ARKOSE_SECURITY_MANAGER == "SSO": self.saml_client = get_saml_client() def register_views(self): # Register your custom SAML auth view explicitly self.authdbview = AuthSAMLView self.auth_view = self.appbuilder.add_view_no_menu(self.authdbview) # Let parent register everything else super().register_views() ``` Since you're on 6.1.0rc1 (which should include PR #39098 based on timeline), adding `register_superset_auth_view = False` and the `register_views()` override should restore your SAML flow. Additionally, if you're hitting any `get_session` errors, note that FAB 5.x (bundled with Superset 6) replaced `get_session` with a `session` property [[2]](https://github.com/apache/superset/pull/35290). <!-- 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=d2375b74-3a42-4f3e-b94c-bb3f65cfddf9) [](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/39950#discussioncomment-16841017 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
