https://superset... API only working with cookie, not working with Authorization #30306
Replies: 1 comment 20 replies
-
I found some similar issues and discussions that might help you:
The reason querying the list dashboard with an Authorization Bearer token returns an empty array, while using a cookie works correctly, is due to the way Superset handles authentication. Superset uses session cookies for authentication, which are set during the login process. When using a cookie, the session is properly authenticated because the cookie contains the necessary session information. However, when using an Authorization Bearer token, the session information is not included in the same way, leading to an empty array being returned [5][6]. To resolve this issue, you might need to ensure that the necessary roles and permissions are correctly set for the user associated with the Bearer token. The specific roles and permissions required to access the
Ensure that your If the issue persists, you might want to explore the related issues and solutions mentioned above for further insights. |
Beta Was this translation helpful? Give feedback.
-
When I query the list dashboard with Authorization: 'Bearer token', the result is not as expected; it returns an empty array.
However, when I use a cookie (taken from Superset's main page), it works.
superset_config.py
I am not sure if I have configured it correctly. There have been discussions about this issue, but it has not been resolved yet.
Is there any solution to this problem? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions