mik-laj commented on PR #25318:
URL: https://github.com/apache/airflow/pull/25318#issuecomment-1200259659

   To use this backend with v1 API, i executed the following commands:
   ```shell
   export AIRFLOW__LOGGING__LOGGING_LEVEL="DEBUG"
   export 
AIRFLOW__API__AUTH_BACKENDS="airflow.providers.google.common.auth_backend.google_openid"
   export 
AIRFLOW__API__GOOGLE_OAUTH2_AUDIENCE="project-id-random-value.apps.googleusercontent.com"
   ```
   ```shell
   gcloud auth activate-service-account --key-file 
/files/data-archive-303923-85ecb6d96736.json
   airflow users create --email 
[email protected] -f 1 -l 2 -r 
Admin -u u
   ENDPOINT_URL="http://localhost:8080/";
   export 
AIRFLOW__API__GOOGLE_OAUTH2_AUDIENCE=project-id-random-value.apps.googleusercontent.com
   AUDIENCE=$AIRFLOW__API__GOOGLE_OAUTH2_AUDIENCE
   ID_TOKEN="$(gcloud auth print-identity-token "--audiences=${AUDIENCE}")"
   curl -X GET  \
       "${ENDPOINT_URL}/api/v1/pools" \
       -H 'Content-Type: application/json' \
       -H 'Cache-Control: no-cache' \
       -H "Authorization: Bearer ${ID_TOKEN}"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to