wangleineo
V2EX  ›  微信

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

  •  
  •   wangleineo · Sep 20, 2020 · 1753 views
    This topic created in 2144 days ago, the information mentioned may be changed or developed.

    比如对于关注消息: 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 来源吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5488 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
    ♥ Do have faith in what you're doing.