1

当我使用导入 API (/api/user/import) 时,不会触发 webhook。

我使用邮递员对此进行了测试, /api/user/registration 端点正在工作。

这是导致没有触发 webhook 和 200OK 的邮递员请求:

  "users": [
    {
      "active": true,
      "birthDate": "1976-05-30",
      "data": {
        "displayName": "Jan"
      },
      "email": "jan@fusionauth.io",
      "encryptionScheme": "salted-md5",
      "factor": 1000,
      "password": "5ac152b6f8bdb8bb12959248d542cb237c4a730064bf88bbb8dd6e204912baad",
      "expiry": 1571786483322,
      "firstName": "Jan",
      "fullName": "Jan",
      "insertInstant": 1331449200000,
      "lastName": "Boos",
      "middleName": "Kleine kinderen",
      "mobilePhone": "303-555-1234",
      "passwordChangeRequired": false,
      "preferredLanguages": [
        "en",
        "fr"
      ],
      "registrations": [
        {
          "applicationId": "7a61c6e9-b1bb-44c0-8532-07af1b04674a",
          "data": {
            "birthplace": "Amsterdam"
          },
          "insertInstant": 1331449200000,
          "preferredLanguages": [
            "de"
          ],
          "username": "Jan",
          "verified": true
        }
      ],
      "salt": "NDdiYWZkZDMtYjk5ZC00ZmZkLWE1YmUtZTQxNGM4MDkwNWYw",
      "timezone": "America/Denver",
      "twoFactorEnabled": false,
      "usernameStatus": "ACTIVE",
      "username": "Jan",
      "verified": true
    }
  ]
}

有什么建议么?

4

1 回答 1

0

这是一个 RTFM 问题:我们在 webhook 设置下的 Applications 选项卡上选择了我们的应用程序。我们不知道选择应用程序会限制您仅接收应用程序事件。

即使没有触发事件,您仍然可以启用这些事件,这从 UX 的角度来看是令人困惑的。

解决方案:在配置中选择“所有应用程序”。

于 2020-01-23T11:18:12.057 回答