Skip to content

Commit 34e7f8f

Browse files
authored
Fix basic auth in airflow.py
1 parent 40215da commit 34e7f8f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

auth_backend/auth_plugins/airflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ async def _update_outer_user_password(cls, username: str, password: str):
4444
async with aiohttp.ClientSession() as session:
4545
async with session.patch(
4646
str(cls.settings.AIRFLOW_AUTH_BASE_URL).removesuffix('/') + '/auth/fab/v1/users' + username,
47-
auth=(cls.settings.AIRFLOW_AUTH_ADMIN_USERNAME, cls.settings.AIRFLOW_AUTH_ADMIN_PASSWORD),
47+
auth=aiohttp.BasicAuth(
48+
cls.settings.AIRFLOW_AUTH_ADMIN_USERNAME, cls.settings.AIRFLOW_AUTH_ADMIN_PASSWORD
49+
),
4850
json={'password': password},
4951
) as response:
5052
res = response.ok

0 commit comments

Comments
 (0)