feat: On window focus, redirect to login if the user has been logged out (#18773)

* /me api

* test it

* watch for window activation and check auth

* simplify

* more comment

* making ci happy

* mypy should ignore tests
This commit is contained in:
David Aaron Suddjian
2022-02-24 10:09:41 -08:00
committed by GitHub
parent 94e245d5eb
commit da3bc48803
10 changed files with 168 additions and 2 deletions

View File

@@ -906,6 +906,7 @@ class TestRolePermission(SupersetTestCase):
["LocaleView", "index"],
["AuthDBView", "login"],
["AuthDBView", "logout"],
["CurrentUserRestApi", "me"],
["Dashboard", "embedded"],
["R", "index"],
["Superset", "log"],