Skip to content

Commit 4903e79

Browse files
authored
Change password params in airflow.py
1 parent 34e7f8f commit 4903e79

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

auth_backend/auth_plugins/airflow.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ async def _update_outer_user_password(cls, username: str, password: str):
4747
auth=aiohttp.BasicAuth(
4848
cls.settings.AIRFLOW_AUTH_ADMIN_USERNAME, cls.settings.AIRFLOW_AUTH_ADMIN_PASSWORD
4949
),
50-
json={'password': password},
50+
params={"update_mask": ["password"]},
51+
json={
52+
"password": password
53+
"email": "no_change",
54+
"first_name": "no_change",
55+
"last_name": "no_change",
56+
"roles": [],
57+
"username": "no_change",
58+
},
5159
) as response:
5260
res = response.ok
5361
logger.debug("_update_outer_user_password class=%s response %s", cls.get_name(), str(response.status))

0 commit comments

Comments
 (0)