I am trying to use Keycloak as a single sign on authentication provider for my superset environment. Superset uses flask-appbuilder.security and flask-login. I previously posted a question about it here:
Using OpenID/Keycloak with Superset
A problem I've encountered since then is that, when a user logs into superset, and logs out from another application, they stay logged in with superset.
I think my best approach should be to check whether the user is still authenticated with the sso. The library I'm using (flask-oidc) provides a user_loggedin check, but I'm not sure where I should call it from.
Where in flask-appbuilder.security or flask-login can I hook this additional authentication check?