Handle exception in Node Patch Object

This topic has 1 reply, 1 voice, and was last updated 7 months, 2 weeks ago by 0b91dc2a-752f-477c-9ba3-d603940fe02d.

  • Author
  • #28796

    I am using Authentication Tree to change user password with Patch Object Node.
    My issue is I don’t know how to catch exception from Patch Object when user input password not match with policy, Authentication Tree always throws

        "code": 401,
        "reason": "Unauthorized",
        "message": "Login failure"

    And stacktrace:
    org.forgerock.openam.auth.node.api.NodeProcessException: org.forgerock.json.resource.BadRequestException: Constraint Violation: The provided new password was found in the password history for the user
    Any idea to put this exception to sharedState or transientState


    cc: @ludo

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?