bugraoz93 commented on code in PR #47869:
URL: https://github.com/apache/airflow/pull/47869#discussion_r1999771145
##########
airflow/api_fastapi/auth/managers/simple/simple_auth_manager.py:
##########
@@ -327,6 +337,21 @@ def _is_authorized(
return role.order >= allow_get_role.order
return role.order >= allow_role.order
+ @staticmethod
+ def _get_passwords(users: list[dict[str, str]], stream: TextIO) ->
tuple[dict[str, str], bool]:
+ # Read passwords from file
+ user_passwords_from_file = json.load(stream)
Review Comment:
Should we handle any non-JSON stream case like `JSONDecodeError` if the file
is updated somehow?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]