You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (Jira)" <ji...@apache.org> on 2019/12/28 18:43:00 UTC
[jira] [Resolved] (AIRFLOW-6352) security - ui - add timeout
[ https://issues.apache.org/jira/browse/AIRFLOW-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Potiuk resolved AIRFLOW-6352.
-----------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
> 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: 2.0.0
>
>
> 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)