Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6352

security - ui - add timeout

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.3
    • Fix Version/s: 1.10.8
    • Component/s: security, ui
    • Labels:
      None

      Description

      www/app.py Add WebUI login timeout of 60 minutes

       

      Fix:

      import datetime
      import flask
      import flask_login

      at the end of     

      def create_app(config=None, testing=False):

      @app.before_request
      def before_request():
      flask.session.permanent = True
      app.permanent_session_lifetime = datetime.timedelta(minutes=60)
      flask.session.modified = True
      flask.g.user = flask_login.current_user

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                toopt4 t oo
                Reporter:
                toopt4 t oo
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: