admin管理员组文章数量:1314471
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 badges1 Answer
Reset to default 0GCP automatically authentify calls made by service accounts when using client libraries like gaxios.
本文标签: How to authenticate to Cloud Composer Airflow REST APIStack Overflow
版权声明:本文标题:How to authenticate to Cloud Composer Airflow REST API - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741970027a2407780.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论