wangleineo
V2EX  ›  微信

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

  •  
  •   wangleineo · Sep 20, 2020 · 1736 views
    This topic created in 2130 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   ·   3735 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:42 · PVG 08:42 · LAX 17:42 · JFK 20:42
    ♥ Do have faith in what you're doing.