weixin_39586683
2020-12-27 18:23 阅读 0

Webhook variable

I am seeing that there are variables available in powershell scripting, but is there a list of variables for webhook?

Issues encountered

The current result of https://localhost/?result=$result.IsSuccess will let the webhook server receive result=$result.IsSuccess as parameter, instead of a boolean returned from the program.

Expected result

The webhook server should receive either result=true or result=false, as well as other parsed variables, such as certificate expiry date and fingerprints.

该提问来源于开源项目:webprofusion/certify

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

4条回答 默认 最新

  • weixin_39538451 weixin_39538451 2020-12-27 18:23

    Im looking for a complete list too but this may be all that is available. https://docs.certifytheweb.com/docs/script-hooks.html

    点赞 评论 复制链接分享
  • weixin_39620334 weixin_39620334 2020-12-27 18:23

    Hi, please do submit a PR for any docs you find lacking to the certify-docs repo. As noted the variables are mostly the same as powershell script hooks, so the main variables are from the ManagedCertificate object: https://github.com/webprofusion/certify/blob/development/src/Certify.Models/Config/ManagedCertificate.cs

    The webhooks have and additional success which is true or false, and a string version of the subjectalternativenames list.

    As you can probably guess, I don't use the webooks functionality myself but it appears to be useful to others. You can examine the logic behind it here: https://github.com/webprofusion/certify/blob/development/src/Certify.Shared/Utils/Webhook.cs

    点赞 评论 复制链接分享
  • weixin_39586683 weixin_39586683 2020-12-27 18:23

    Thanks for the suggestion -chrisc, I think I will leave the PR for others to do.

    Instead, please kindly read my encounter stated in my issue, where contradicts to your saying on variables are mostly the same as powershell script hooks. By no means I want to go war, but this is so confuse given the webhook.cs does not provide interface to access the ManagedCertificate object.

    点赞 评论 复制链接分享
  • weixin_39620334 weixin_39620334 2020-12-27 18:23

    No problem, thanks for your feedback.

    点赞 评论 复制链接分享

相关推荐