V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wangleineo
V2EX  ›  微信

请问如何验证微信公众号后台的事件推送来自微信服务器?

  •  
  •   wangleineo · 2020-09-20 15:54:32 +08:00 · 1023 次点击
    这是一个创建于 1286 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如对于关注消息: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_event_pushes.html

    服务器会 POST 一个 XML 到我的接口。我如何确认这个请求来自于微信?

    在验证接口的时候,微信会发一个 GET 请求,可以通过加密签名来验证来源: https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Access_Overview.html

    POST 的推送请求如何验证?要验证 IP 来源吗?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2444 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:51 · PVG 23:51 · LAX 08:51 · JFK 11:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.