This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push:
new 8e11423 Fix airflow-webserver startup errors when using Kerberos Auth
(#10047)
8e11423 is described below
commit 8e114232da3decf5f8e4d9785715680a17d89546
Author: Kurganov <[email protected]>
AuthorDate: Wed Jul 29 17:17:06 2020 +0300
Fix airflow-webserver startup errors when using Kerberos Auth (#10047)
fix airflow-webserer startup errors if
airflow.api.auth.backend.kerberos_auth enabled
(cherry picked from commit 87b495b8cfc28c9887eb5dc52ad50eccb71579b6)
---
airflow/contrib/auth/backends/kerberos_auth.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/contrib/auth/backends/kerberos_auth.py
b/airflow/contrib/auth/backends/kerberos_auth.py
index e84a0b2..3600825 100644
--- a/airflow/contrib/auth/backends/kerberos_auth.py
+++ b/airflow/contrib/auth/backends/kerberos_auth.py
@@ -20,7 +20,7 @@
import logging
import flask_login
from airflow.exceptions import AirflowConfigException
-from flask_login import current_user
+from flask_login import current_user, login_required, logout_user
from flask import flash
from wtforms import Form, PasswordField, StringField
from wtforms.validators import InputRequired