【问题标题】:github service hook and basic authenticationgithub 服务挂钩和基本身份验证
【发布时间】:2013-08-20 03:33:37
【问题描述】:

我正在尝试弄清楚如何保护 github 服务挂钩的 webhook 接收器。

在 github 手册页中,当您查看有关 github 挂钩将来自哪些 IP 地址的部分时,它会出现以下警告:

“我们强烈建议您不要将服务挂钩的 IP 列入白名单。而是设置 HTTPS 和基本身份验证来验证传入请求。”

post receive hooks 的文档中,我看不到任何设置基本身份验证的方法。

如何通过 github post-recieve/service/web 挂钩使用基本身份验证,通知我提交到存储库?

【问题讨论】:

标签: github webhooks git-post-receive


【解决方案1】:

我认为你可以使用

https://yourUser:yourSecret@yoursite.net/path

就像在任何基本的身份验证情况下一样。

我明天也试试看 :) https://github.com/blog/237-basic-auth-post-receives

【讨论】:

  • 我刚刚尝试过:转到您的 Repository->Settings->Service Hooks 并在您的 WebhookUrl 中使用上述语法:)
猜你喜欢
  • 1970-01-01
  • 2019-10-10
  • 1970-01-01
  • 2016-01-18
  • 2016-11-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多