title: trigger a dag from airflow2
body: <p>I am using this link: <a href="https://cloud.google.com/composer/docs/composer-2/triggering-with-gcf" rel="nofollow noreferrer">https://cloud.google.com/composer/docs/composer-2/triggering-with-gcf</a> in order to trigger a DAG using airflow2.</p>
  <p>However I am getting this error:</p>
  <blockquote>
  <p>requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: <code>https://myairflow/api/v1/dags/lmbr-agentgroup-gcs-to-raw/dagRuns</code></p>
  </blockquote>
  <p>However there aren't any place to put some kind of authentication in the code provide in the link of google material.</p>
  <p>Does anyone faced this problem and know how to fixed?</p>
  <p>I was using the default user in cloud function which is: appengine. after that I found more information and use this command to list all user who has permission
  gcloud composer environments run myAirflowEnv --location=southamerica-east1 users -- list
  and I used one of this user on cloud function, but it didn't work as well.</p>
  <p>same error: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://myAirflow/api/v1/dags/mydag/dagRuns</p>