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 error `Could not build url for endpoint 'None.login'` means your custom
`AuthSAMLView` was never properly registered with Flask, so `self.sm.auth_view`
has a `None` endpoint. Looking at your updated code, the issue is in your
`register_views()` override — you're calling `super().register_views()` but
you're **not actually registering your custom view** or setting
`self.auth_view`:
```python
def register_views(self):
super().register_views() # This registers the default SupersetAuthView
```
You need to **replace** the default view registration, not just call super.
Additionally, the `register_superset_auth_view = False` flag from PR #39098 may
not be included in your 6.1.0rc1 build (it was merged April 6, 2026 for rc2+)
[[1]](https://github.com/apache/superset/discussions/39948#discussioncomment-16841002).
**Try this approach** — override `register_views()` to register your view
*before* calling super, and explicitly set `self.auth_view`:
```python
class SAMLSSOSecurityManager(SupersetSecurityManager):
register_superset_auth_view = False # May only work in rc2+
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 auth view and assign it to auth_view
self.authdbview = AuthSAMLView
self.auth_view = self.appbuilder.add_view_no_menu(AuthSAMLView)
# Now call super — if register_superset_auth_view flag works,
# it won't overwrite your auth_view
super().register_views()
```
**If `register_superset_auth_view` is not available in your build**, calling
`super().register_views()` will overwrite `self.auth_view` with
`SupersetAuthView`. In that case, re-assign it *after* super:
```python
def register_views(self):
super().register_views()
# Override the auth_view that super() just set
self.auth_view = self.appbuilder.add_view_no_menu(AuthSAMLView)
```
This ensures `self.auth_view` has a proper endpoint (auto-generated from your
class name `AuthSAMLView`), which resolves the `None.login` build error
[[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/security/manager.py#L2788-L2816).
**Alternative workaround** if view registration keeps fighting you — use
`FLASK_APP_MUTATOR` to bypass the auth view entirely and handle SAML redirect
in a `before_request` hook
[[3]](https://github.com/apache/superset/discussions/38199). But the
`register_views()` override above should work if you set `self.auth_view`
correctly.
<!-- 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=ffc8f864-d5d9-428a-98ad-8f2d46d3ae1e)
[](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/39950#discussioncomment-16841323
----
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]