We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40215da commit 34e7f8fCopy full SHA for 34e7f8f
1 file changed
auth_backend/auth_plugins/airflow.py
@@ -44,7 +44,9 @@ async def _update_outer_user_password(cls, username: str, password: str):
44
async with aiohttp.ClientSession() as session:
45
async with session.patch(
46
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),
+ auth=aiohttp.BasicAuth(
48
+ cls.settings.AIRFLOW_AUTH_ADMIN_USERNAME, cls.settings.AIRFLOW_AUTH_ADMIN_PASSWORD
49
+ ),
50
json={'password': password},
51
) as response:
52
res = response.ok
0 commit comments