raghu ram reddy created AIRFLOW-1552:
----------------------------------------
Summary: Airflow Filter_by_owner not working with password_auth
Key: AIRFLOW-1552
URL: https://issues.apache.org/jira/browse/AIRFLOW-1552
Project: Apache Airflow
Issue Type: Bug
Components: configuration
Affects Versions: Airflow 1.8
Environment: CentOS , python 2.7
Reporter: raghu ram reddy
Airflow Filter_by_owner parameter is not working with password_auth.
I created sample user using the below code from airflow documentation and
enabled password_auth.
I'm able to login as the user created but by default this user is superuser and
there is noway to modify it, default all users created by PasswordUser are
superusers.
import airflow
from airflow import models, settings
from airflow.contrib.auth.backends.password_auth import PasswordUser
user = PasswordUser(models.User())
user.username = 'test1'
user.password = 'test1'
user.is_superuser()
session = settings.Session()
session.add(user)
session.commit()
session.close()
exit()
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)