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,
- How to trigger rest api via curl with Azure AD authentication(for webserver not sure same required for API) ?
- 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"
}