bugraoz93 commented on code in PR #47399:
URL: https://github.com/apache/airflow/pull/47399#discussion_r1984050033


##########
airflow/api/client/__init__.py:
##########
@@ -19,20 +19,8 @@
 
 from __future__ import annotations
 
-from airflow import api
 from airflow.api.client.local_client import Client
 
 
 def get_current_api_client() -> Client:
-    """Return current API Client based on current Airflow configuration."""
-    auth_backends = api.load_auth()
-    session = None
-    for backend in auth_backends:
-        session_factory = getattr(backend, "create_client_session", None)
-        if session_factory:
-            session = session_factory()
-        api_client = Client(
-            auth=getattr(backend, "CLIENT_AUTH", None),
-            session=session,
-        )
-    return api_client
+    return Client()

Review Comment:
   Yes, exactly. Those will be gone as part of AIP-81 and will be replaced with 
client in the CLI



-- 
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]

Reply via email to