最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to authenticate to Cloud Composer Airflow REST API - Stack Overflow

programmeradmin2浏览0评论

I try to authenticate an HTTP call to the Cloud Composer Airflow REST API from a Cloud Run service in a different project. I want to programmatically trigger a DAG run. I don't understand how to do it. The documentation is not clear about how to fe the request.

I tried to use the Swagger provided by my Cloud Composer environment to inspect the request made to trigger a DAG, but the authentication / authorization process seems to be handled by a session cookie.

What I understood from the documentation is that there are other ways to authenticate HTTP calls like OAuth2, but it's not clear how to do it without a Python script (I'm open to use a node library though).

I want to know how I can craft an authenticated HTTP call without using any libraries. It should be straightforward but I can't find the documentation for that. Should I use specific headers ? How can I get the credentials of my service account ? etc.

I try to authenticate an HTTP call to the Cloud Composer Airflow REST API from a Cloud Run service in a different project. I want to programmatically trigger a DAG run. I don't understand how to do it. The documentation is not clear about how to fe the request.

I tried to use the Swagger provided by my Cloud Composer environment to inspect the request made to trigger a DAG, but the authentication / authorization process seems to be handled by a session cookie.

What I understood from the documentation is that there are other ways to authenticate HTTP calls like OAuth2, but it's not clear how to do it without a Python script (I'm open to use a node library though).

I want to know how I can craft an authenticated HTTP call without using any libraries. It should be straightforward but I can't find the documentation for that. Should I use specific headers ? How can I get the credentials of my service account ? etc.

Share Improve this question edited Jan 30 at 17:01 Alexandre Schaffner asked Jan 30 at 11:24 Alexandre SchaffnerAlexandre Schaffner 295 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

GCP automatically authentify calls made by service accounts when using client libraries like gaxios.

发布评论

评论列表(0)

  1. 暂无评论