@stephen
When the Change Password API returns 400
indicating that trust is required, you'll need to obtain a trust token.
{
"generalErrors" : [ {
"code" : "[TrustTokenRequired]",
"message" : "This request requires a Trust Token. Use the Start Two-Factor API to obtain a Trust Token required to complete this request."
} ]
}
To obtain a trust token, complete a Two Factor login.
POST /api/two-factor/start
POST /api/two-factor/login
The completion of the Two Factor Login will return a trustToken
value in the response body. This token can be used to complete the Change Password API.
If you want to scope the trustToken
returned by the Two Factor Login request for use by the Change Password API, you may provide a trustChallenge
in the request body on the Start API. When you do this, the same value must be provided when you use the trustToken
on the Change Password API. In this way you can ensure that the trustToken
may only be used for the intended purpose.
It looks like the APIs may not have this example outlined, we'll review the doc and see what needs to be updated.