[
https://issues.apache.org/jira/browse/AIRFLOW-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17005344#comment-17005344
]
ASF subversion and git services commented on AIRFLOW-6352:
----------------------------------------------------------
Commit d12d400197722b4589afd9c96790eb81aa1a6f8b in airflow's branch
refs/heads/v1-10-test from tooptoop4
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=d12d400 ]
[AIRFLOW-6352] security - ui - add login timeout (#6912)
(cherry picked from commit 0721d62bf1b23a471d7fe97ccf108db9f92403ef)
> 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
> Fix For: 1.10.8
>
>
> 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)