Move the logout logic to the auth manager
"""
        Use our url filtering util function so there is consistency between
        FAB and Airflow routes.
        """
        from flask_appbuilder.security import views as fab_sec_views
        from airflow.www.views import get_safe_url
        fab_sec_views.get_safe_redirect = get_safe_url
    def post_init(self):
        for baseview in self.baseviews:
            
            self._check_and_init(baseview)
            
            if baseview.__class__.__name__ not in self.get_app.blueprints.keys():
                self.register_blueprint(baseview)
            
        self.add_permissions()
    @property
    def get_app(self):
        """
        Get current or configured flask app.
        :return: Flask App
        """
        if self.app:
            return self.app
        else:
            return current_app
    @property
    def get_session(self):