airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "t oo (Jira)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-6352) security - ui - add timeout
Date Thu, 26 Dec 2019 00:23:00 GMT
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)

Mime
View raw message