更改密码票证错误Auth0

Change password ticket error Auth0

我在使用 Auth0 通过 API 使用更改密码票证功能时遇到问题。

有 connection_id 的东西?如果它不是我的数据库的名称,我在哪里可以找到它? ?

错误信息:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'String does not match pattern ^con_[A-Za-z0-9]{16}$: Health-Users' on property connection_id (The connection that provides the identity for which the password is to be changed. If sending this parameter, the email is also required and the user_id is invalid).",
  "errorCode": "invalid_body"
}

添加 user_id 参数时出现此错误:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'Invalid property user_id'.",
  "errorCode": "invalid_body"
}

我已经尝试过直接通过 API 和 Postman,但都给出了同样的错误。

您尝试使用的 API 端点需要连接 ID,该 ID 不同于连接名称。您可以通过管理 API 的连接端点获取连接 ID。