diff --git a/airflow-core/docs/core-concepts/auth-manager/simple/token.rst b/airflow-core/docs/core-concepts/auth-manager/simple/token.rst index 4e9e5cadf3200..0fdaee5dd78f5 100644 --- a/airflow-core/docs/core-concepts/auth-manager/simple/token.rst +++ b/airflow-core/docs/core-concepts/auth-manager/simple/token.rst @@ -30,7 +30,7 @@ Example .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X 'POST' \ "${ENDPOINT_URL}/auth/token" \ -H 'Content-Type: application/json' \ @@ -45,5 +45,5 @@ If ``[core] simple_auth_manager_all_admins`` is set to True, you can also genera .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X 'GET' "${ENDPOINT_URL}/auth/token" diff --git a/airflow-core/docs/howto/docker-compose/index.rst b/airflow-core/docs/howto/docker-compose/index.rst index 68c4d00998e61..62382469df793 100644 --- a/airflow-core/docs/howto/docker-compose/index.rst +++ b/airflow-core/docs/howto/docker-compose/index.rst @@ -279,7 +279,7 @@ Here is a sample ``curl`` command, which sends a request to retrieve a pool list .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X GET \ --user "airflow:airflow" \ "${ENDPOINT_URL}/api/v1/pools" diff --git a/airflow-core/docs/security/api.rst b/airflow-core/docs/security/api.rst index 3f86a75b863fb..65469c880f9a8 100644 --- a/airflow-core/docs/security/api.rst +++ b/airflow-core/docs/security/api.rst @@ -43,7 +43,7 @@ Request .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X POST ${ENDPOINT_URL}/auth/token \ -H "Content-Type: application/json" \ -d '{ @@ -63,7 +63,7 @@ Use the JWT token to call Airflow public API .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X GET ${ENDPOINT_URL}/api/v2/dags \ -H "Authorization: Bearer " diff --git a/providers/fab/docs/auth-manager/api-authentication.rst b/providers/fab/docs/auth-manager/api-authentication.rst index a4c91539c3ce6..38e47bc13c19b 100644 --- a/providers/fab/docs/auth-manager/api-authentication.rst +++ b/providers/fab/docs/auth-manager/api-authentication.rst @@ -66,7 +66,7 @@ work. This means that your user name should be ``user_name@REALM``. .. code-block:: bash kinit user_name@REALM - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X GET \ --negotiate \ # enables Negotiate (SPNEGO) authentication --service airflow \ # matches the `airflow` service name in the `airflow/fully.qualified.domainname@REALM` principal @@ -106,7 +106,7 @@ Here is a sample curl command you can use to validate the setup: .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X GET \ --user "username:password" \ "${ENDPOINT_URL}/api/v1/pools" diff --git a/providers/fab/docs/auth-manager/token.rst b/providers/fab/docs/auth-manager/token.rst index af610ab6ad496..4fa0efd47af6f 100644 --- a/providers/fab/docs/auth-manager/token.rst +++ b/providers/fab/docs/auth-manager/token.rst @@ -30,7 +30,7 @@ Example .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" curl -X 'POST' \ "${ENDPOINT_URL}/auth/token" \ -H 'Content-Type: application/json' \ diff --git a/providers/google/docs/api-auth-backend/google-openid.rst b/providers/google/docs/api-auth-backend/google-openid.rst index 03885876cbea9..2b183d9c2830b 100644 --- a/providers/google/docs/api-auth-backend/google-openid.rst +++ b/providers/google/docs/api-auth-backend/google-openid.rst @@ -59,7 +59,7 @@ look like the following. .. code-block:: bash - ENDPOINT_URL="http://localhost:8080/" + ENDPOINT_URL="http://localhost:8080" AUDIENCE="project-id-random-value.apps.googleusercontent.com" ID_TOKEN="$(gcloud auth print-identity-token "--audiences=${AUDIENCE}")"