This is an automated email from the ASF dual-hosted git repository.

shahar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 05a66e72e7e Update API auth. instructions in Docker running docs 
(#59830)
05a66e72e7e is described below

commit 05a66e72e7e313f8b69ec09e06d53090e6ef984b
Author: Tomas Frajt <[email protected]>
AuthorDate: Fri Dec 26 20:48:31 2025 +0100

    Update API auth. instructions in Docker running docs (#59830)
---
 airflow-core/docs/howto/docker-compose/index.rst | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/airflow-core/docs/howto/docker-compose/index.rst 
b/airflow-core/docs/howto/docker-compose/index.rst
index c417950e733..e1045f70ea0 100644
--- a/airflow-core/docs/howto/docker-compose/index.rst
+++ b/airflow-core/docs/howto/docker-compose/index.rst
@@ -295,9 +295,14 @@ Here is a sample ``curl`` command, which sends a request 
to retrieve a pool list
 .. code-block:: bash
 
     ENDPOINT_URL="http://localhost:8080";
-    curl -X GET  \
-        --user "airflow:airflow" \
-        "${ENDPOINT_URL}/api/v1/pools"
+    JWT_TOKEN=$(curl -s -X POST ${ENDPOINT_URL}/auth/token \
+                     -H "Content-Type: application/json" \
+                     -d '{"username": "airflow", "password": "airflow"}' |\
+                jq -r '.access_token' \
+              )
+    curl -X GET \
+        "${ENDPOINT_URL}/api/v2/pools" \
+        -H "Authorization: Bearer ${JWT_TOKEN}"
 
 Cleaning up
 ===========

Reply via email to