Regarding the authentication token seperate request. #147
-
Suggestion: Simplify Authentication FlowI noticed that the authentication token currently needs to be obtained via a separate Would it be possible to provide a method within the configuration (or during client initialization) that automatically handles token generation? This could significantly improve the developer experience by removing the extra step of explicitly calling the authentication endpoint before using the client. ContextI wasn’t aware that this repository already existed. Since I sometimes struggle with navigating documentation, I ended up creating my own Python wrapper around the Airflow v2 API that provides similar functionality with a simpler configuration flow: https://github.com/29TanayRaj/Apache-Airflow-Python-SDK Example Usage (from my repo)with AirflowSDK(
base_url="<your_base_url>",
username="<your_admin_name>",
password="<your_password>"
) as client:
print(client.dags.list()) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can use Python Client that will do all the token handling for you. And no - becaue of our AuthManager approach we do not plan to make changes in the authentication flow. |
Beta Was this translation helpful? Give feedback.
You can use Python Client that will do all the token handling for you.
And no - becaue of our AuthManager approach we do not plan to make changes in the authentication flow.