简体   繁体   English

更改密码票证错误Auth0

[英]Change password ticket error Auth0

I am having problem using the Change password ticket feature through the API using Auth0. 我在使用Auth0通过API使用更改密码票证功能时遇到问题。

Something with connection_id ? 带有connection_id的东西? If it isn't the name of my db, where do I find it? 如果不是我的数据库名称,我在哪里可以找到它? ?

error message: 错误信息:

{
  "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"
}

When adding user_id param I get this error: 当添加user_id参数时,出现此错误:

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

I have tried both through the API directly and with Postman, and both give same error. 我已经尝试通过API直接使用Postman,并且都尝试了相同的错误。

The API endpoint you're trying to use needs the connection's ID, which is different from the connection name. 您尝试使用的API端点需要连接的ID,该ID与连接的名称不同。 You can get a connection's ID through the management API's Connections endpoints. 您可以通过管理API的“连接”端点获取连接的ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM