-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Superset throws access is denied error when viewing dashboard even after signing in. #28646
Comments
To resolve the "Access Denied" error that appears twice when viewing a dashboard in Superset after logging in with OAuth authentication, you can try the following steps:
Additionally, there is a known issue related to OAuth authentication in Superset version 3.1.3 that could cause "Access Denied" errors. You can find more details about this issue in the GitHub repository: Issue #20300. By addressing these potential issues, you should be able to resolve the "Access Denied" error when viewing a dashboard in Superset.
|
This is what happens, when a user without credentials tries to access a database that supports OAuth2, the backend will raise an OAUTH2_REDIRECT error. This will prompt the frontend to display a message informing the user they need to authenticate. The user will be redirected to an OAuth2 authentication process, and upon successful authorization, their personal access token will be stored for subsequent connections. |
@dosu Any updates on this? |
To resolve the "Access Denied" error that appears even after successful OAuth2 authorization, you should ensure the following:
By ensuring these steps are correctly followed, you should be able to resolve the "Access Denied" error after successful OAuth2 authorization. |
@dosu I've tried everything mentioned above, still facing the same error. |
The screenshot is broken, but I can't help but wonder if the user in question indeed has access to the dashboard and data. This sounds like an RBAC/config issue more than a Superset bug, I'm afraid. |
@rusackas Yes, the user has access to the dashboard and data. I think the problem is with the initial loading. On clicking on the link since the user is not signed in, it redirects to login page, where the access denied should've been shown. Since an OAuth integration is used and the login page is different, the error message is not shown and only after signing in, the message from earlier is shown. |
Ahh, ok. I don't recall all the details, but the login page takes a redirection URL param, which can send the user back to the correct page after authorizing. |
Any updates on this? How can the error message be prevented from propagating to the home page after signing in? |
Not sure how to repro this. I'm assuming you're using a custom security manager or have a config issue of some sort. This is not an issue on Preset instances, so I don't think it's an issue with Superset itself. |
This error makes our customers wonder what is wrong here.... how can we prevent it? |
Hello, I have the same problem here, using a Keycloak Security Manager and I am struggling to find a solution, any ideas even to 'hide' that label? |
Hi, I'm experiencing a similar issue with Superset 4.0.0. In my case, I’m using a custom security manager to implement SSO. It seems that when I try to access a dashboard before a session is created (e.g., the first time I log in for the day), Superset redirects from the dashboard to a login page and then back to the dashboard. The issue is that the login page doesn’t exist because we use SSO, so a pop-up appears in the background even though the user logs in automatically. |
Did anyone found any solution I am facing same issue while logging in as admin for the first time, although on subequent login it doesn't occurs. |
Bug description
I have a link to a dashboard. When I click on the link , it redirects to to login page. After logging in, the dashboard is displayed, but Access Denied toaster appears twice. We have used Oauth authentication.
How to reproduce the bug
Screenshots/recordings
Superset version
3.1.3
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: