You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using my backend to give the guest token to the frontend,
but I was getting
"error": "{"errors": [{"message": "400 Bad Request: The CSRF session token is missing.", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}"
Then I had used CookieSession to maintain a session,
But after enabling this I am not able to logout from my superset.
I have implement OAUTH using azure
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
I have searched Superset docs and Slack and didn't find a solution to my problem.
I have searched the GitHub issue tracker and didn't find a similar bug report.
I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
The text was updated successfully, but these errors were encountered:
To resolve the issue of not being able to logout after implementing OAUTH with Azure and using CookieSession, ensure that the CSRF token is properly fetched and included in the headers for requests that require it. Here are some steps you can follow:
Ensure that the getCSRFToken() method is called before the logout request to fetch and set the CSRF token in the headers.
Verify that the CSRF token is included in the headers of the logout request. The headers should include 'X-CSRFToken': this.csrfToken.
Check if the session is properly maintained and that the CSRF token is not being cleared or invalidated prematurely [1].
Bug description
I was using my backend to give the guest token to the frontend,
but I was getting
"error": "{"errors": [{"message": "400 Bad Request: The CSRF session token is missing.", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}"
Then I had used CookieSession to maintain a session,
But after enabling this I am not able to logout from my superset.
I have implement OAUTH using azure
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: