Password Change Ticket Error: "Invalid property result_url"
Last Updated:
Overview
This article provides a resolution for a 400 Bad Request error with the following error message when calling the POST /api/v2/tickets/password-change endpoint from the Management API:
Payload validation error: 'Invalid property result_url'
Applies To
- POST /api/v2/tickets/password-change
- Management API Tickets
Cause
This error occurs when the result_url parameter is passed along with the client_id or the organization_id parameter.
- The
client_idandorganization_idparameters conflict with theresult_url. The former two parameters enable the application to have a Back to App button that redirects the user to a Default Login Route. - Additionally, the
result_urlparameter is available only in the Classic Universal Experience.
Solution
To utilize the result_url parameter, the user must use the Classic Universal Login and ensure that neither the client_id nor the organization_id parameter is included in the request.
However, to continue using the client_id or organization_id parameter while using the New Universal Experience, the result_url parameter should not be included in the request. Instead, the Default Login Route should be used to redirect the user after a password change.
For more information on Default Login Routes, review the Auth0 document Configure Default Login Routes.