-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
/savedqueryviewapi/api/read throws 401 {"message":"Access is Denied","severity":"danger"} when /api/v1/saved_query works fine #26382
Comments
It seems that authentication can either be only OAUTH or DB, not both. Could someone help with how we can authenticate as an admin user or using a Google Service account? I shall happily convert that to proper documentation. |
@rajivpatki are you still facing this, or have you moved on in some way? Tempted to close as stale, but don't want to do so if you still need help. We'll have a hard time supporting any custom security managers if that's part of the problem here, but if you think it's an underlying Superset bug, we can attempt to get more attention on this. |
Meanwhile, let's see what our new bot says.... |
To address the issue of accessing the
By following these steps, you should be able to configure the authentication method that best suits your needs and resolve the 401 error when accessing the
|
A clear and concise description of what the bug is.
How to reproduce the bug
db
, admin user created during superset init) to make aGET
request to/api/v1/saved_query
db
, admin user created during superset init) to make aGET
request to/savedqueryviewapi/api/read
401
with content{"message":"Access is Denied","severity":"danger"}
Expected results
Same behaviour as browser UI
Actual results
401 with Access Denied
Environment
3.0.2
from official docker imageLogs
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I am trying to implement
SCHEDULED_QUERIES
as referenced here:The objective is to use Airflow to implement users' scheduled queries. The UI works fine - saved queries with scheduling data show up at https://superset.example.com/savedqueryviewapi/api/read on my browser. But I am not able to fetch these queries using a Python script due to the 401.
Using
/api/v1/saved_query
doesn't help since it shows only your own saved queries, similar to @matt-lessig in #21769 (comment)Reference: #20604, #21769
The text was updated successfully, but these errors were encountered: