Feature Request - Login Page redirection on clicking on a Dashboard link #22190
Replies: 6 comments 4 replies
-
+1 here on Superset 2.0.0. My users get a plain HTML page with Possible contributing factors: I have a Public role configured and in use, as well as the DASHBOARD_RBAC flag enabled. I see two use cases to address:
I think the desired pattern would be:
|
Beta Was this translation helpful? Give feedback.
-
Con you note your superset version? The redirect to auth behavior was added somewhat recently. |
Beta Was this translation helpful? Give feedback.
-
Ok this might actually be an issue with dashboard rbac feature. It should probably throw a missing auth error if the user is not logged in and public role isn’t in the dashboard roles, otherwise the permissions error should be thrown |
Beta Was this translation helpful? Give feedback.
-
Here’s the source code for the dashboard rbac feature, if one of you is interested in implementing this superset/superset/security/manager.py Line 1967 in a77b2d6 |
Beta Was this translation helpful? Give feedback.
-
@nytai @sfirke I have raised a PR #23280 for the issue. Please take a look. |
Beta Was this translation helpful? Give feedback.
-
This PR was merged yesterday to implement this feature: #30380 If interested, please try it out on master branch and see if there are any issues. |
Beta Was this translation helpful? Give feedback.
-
I have a Superset instance with Google OAuth enabled. When I share any Dashboard link - https://mydomain.superset.com/superset/dashboard/12 within my team, it says you don't have access to this Dashboard. Its a valid scenario considering the user is not yet authenticated. What I want is-when the user click on the above link , it should redirect the user to login page instead of complaining about the dashboard access.
This behavior is similar to what most of the modern websites offer ( on clicking on a random link, user should be re-directed to login page )
Beta Was this translation helpful? Give feedback.
All reactions