node.js - 用于 Google Cloud Functions 身份验证重定向的 gitHubAutoDeployer
问题描述
我正在尝试使用以下gitHubAutoDeployer
提供的功能:
我关注了该项目,但在部署并尝试触发它时,我发现对我的 webhook 的响应是 Google OAuth 屏幕(在 GitHub 项目中,转到设置 > Webhook > 最近交付)。我继续在浏览器中使请求交互,以便我可以提供访问权限。提供我的凭据后,我被重定向到以下内容:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Forbidden</h1>
<h2>Your client does not have permission to get URL <code>/gitHubAutoDeployer</code> from this server.</h2>
<h2></h2>
</body></html>
现在,GitHub 中的最近交付以 302 响应:
Content-Length: 2
Content-Type: text/html
Date: Mon, 30 Mar 2020 15:02:27 GMT
Location: https://accounts.google.com/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%3Fcontinue%3Dhttps://us-central1-REDACTED.cloudfunctions.net/gitHubAutoDeployer
Server: Google Frontend
X-Cloud-Trace-Context: d3333e1490ee3ca522c37243673931ed
我究竟做错了什么?有什么想法吗?
更新:我在项目的 GitHub 上打开了一个问题 - 那里有更多信息可用:
https://github.com/GoogleCloudPlatform/community/issues/1202
解决方案
我还按照您引用的项目的教程进行操作,得到了相同的结果。
但是,我使用具有持续部署的 Cloud Build实现了预期的行为
推荐阅读
- rust - 有没有更简单的方法来实现 FromData 就像 Rocket 中的 FromForm 一样?
- binance - 气体估计错误,错误代码为 32000
- javascript - 无法将加号按钮添加到 django 模型表单
- reactjs - 减少输入值 - reactjs
- vue.js - 如何在挂载之前将组件添加到 VueJs3 应用程序
- xamarin - 带有 Xamarin.Forms 的 Android 后台位置跟踪
- apache-kafka - 多个发布者如何发布到主题/分区?
- matlab - matlab中向量长度的错误,但我用length()检查了它们并且它们相等
- .net - F# Match 在 'T list' 与 ''a list -> 'b list' 之间的类型比较失败
- python - 如何使用 Python 为不同的前缀同时运行 AWS S3 同步命令