You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "t oo (Jira)" <ji...@apache.org> on 2019/12/26 00:23:00 UTC

[jira] [Created] (AIRFLOW-6352) security - ui - add timeout

t oo created AIRFLOW-6352:
-----------------------------

             Summary: security - ui - add timeout
                 Key: AIRFLOW-6352
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6352
             Project: Apache Airflow
          Issue Type: Bug
          Components: security, ui
    Affects Versions: 1.10.3
            Reporter: t oo


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

 

Fix:

at the end of     

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

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)