[
https://issues.apache.org/jira/browse/AIRFLOW-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004546#comment-17004546
]
ASF subversion and git services commented on AIRFLOW-6352:
----------------------------------------------------------
Commit 0721d62bf1b23a471d7fe97ccf108db9f92403ef in airflow's branch
refs/heads/master from tooptoop4
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=0721d62 ]
[AIRFLOW-6352] security - ui - add login timeout (#6912)
> 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
> Assignee: t oo
> Priority: Major
>
> 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
> {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)