Superset CustomAuthUserView #32038
Replies: 1 comment
-
I found some similar discussions that might be relevant to your query:
To implement a custom authentication flow in Superset where you can switch between SSO using a token and standard username/password authentication, you can extend the Unfortunately, I couldn't find a specific example in the repository for dynamically choosing between SSO and username/password authentication based on URL parameters. However, you can start by checking for the token in the URL within the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Hello Superset Community,
I need to implement a custom authentication flow in Superset where two methods can be used for login:
SSO using Token: If a valid token is provided in the URL (e.g., ?token=1234abcd456), the user should be authenticated via SSO.
Standard Username/Password Authentication: If no token is provided, the user should be prompted to log in using the usual username and password.
What is the best way to implement this logic in Superset?
I’ve tried modifying the CustomSecurityManager but am unsure how to properly switch between the two methods dynamically based on the presence of a token.
Could someone provide guidance or an example on how to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions