How to tigger airflow dag using rest api for version 2.3.2 when you have AzureAD LDAP authentication?

Viewed 27

I have basic_auth enabled in Airflow, but when I curl the api it throw me Unauthorized error. I am aware that I have to provide username and password but the issue is the webserver login happens via AzureAD login. So technically I dont have username and password.

Two questions,

  1. How to trigger rest api via curl with Azure AD authentication(for webserver not sure same required for API) ?
  2. Can I use AzureAD auth through python code and trigger Airflow DAG ?

Facing,

{
  "detail": null,
  "status": 401,
  "title": "Unauthorized",
  "type": "https://airflow.apache.org/docs/apache-airflow/2.3.3/stable-rest-api-ref.html#section/Errors/Unauthenticated"
}
0 Answers
Related