bugraoz93 commented on code in PR #66261:
URL: https://github.com/apache/airflow/pull/66261#discussion_r3369406728
##########
airflow-core/src/airflow/api/client/local_client.py:
##########
@@ -34,7 +42,31 @@ def __init__(self, auth=None, session: httpx.Client | None =
None):
self._session: httpx.Client = session or httpx.Client()
if auth:
self._session.auth = auth
+ self.api_token = self._create_api_token()
+
+ def _create_api_token(self) -> str:
+ try:
+ auth_manager = get_auth_manager()
+ except RuntimeError:
+ auth_manager = init_auth_manager()
+ return auth_manager.generate_jwt(
+ user=SimpleAuthManagerUser(username=getuser(), role="admin"),
Review Comment:
This hasn't been resolved.
--
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]