You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "laurajsdias (via GitHub)" <gi...@apache.org> on 2025/03/21 14:14:32 UTC

Re: [D] 401 unauthorized with Google OpenID authentication on API [airflow]

GitHub user laurajsdias edited a discussion: 401 unauthorized with Google OpenID authentication on API

Hey,

I have Airflow deployed on AWS EKS and I'm trying to use Google OpenID to authenticate on Airflow API, following this documentation: https://airflow.apache.org/docs/apache-airflow-providers-google/10.7.0/api-auth-backend/google-openid.html

I already can sign-in to the webserver using Google, but having issues to configure API authentication. It gives 401 unauthorized both for my own Google account and GCP service account. 

I have the `auth_backend` and `google_oauth2_audience` in place in `airflow.cfg`. I also have the service account key mounted inside the webserver pod and `GOOGLE_APPLICATION_CREDENTIALS` as env pointing to the service account key path.

Not sure what else to do. Did someone have to do something similar that can help? Is there a more in-depth documentation on how to set this?

If needed, I can give more information.

Thanks a lot for the support in advance!

GitHub link: https://github.com/apache/airflow/discussions/48055

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org