mdeshmu commented on issue #23443: URL: https://github.com/apache/superset/issues/23443#issuecomment-1478107499
Basically what happens is: It logs out and then redirects to login page but your session cookie is still active in the browser so it directly logs you in. Hence you have to overwrite logout function given here: https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/views.py#L498 @expose("/logout/") def logout(self): self.appbuilder.app.config["LOGOUT_REDIRECT_URL"] = ("{0}?id_token_hint={1}&post_logout_redirect_uri={2}".format( OKTA_BASE_URL + 'logout', session.get('id_token'), request.url_root.strip('/') )) logger.debug("LOGOUT_REDIRECT_URL: %s", self.appbuilder.app.config.get("LOGOUT_REDIRECT_URL")) return super().logout() def oauth_user_info(self, provider, resp): session['id_token'] = resp['id_token'] -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
