We frequently work with various JSON tokens and decode JWTs to check various claims. Some claims may be present, while others may not.
Until now, this was not an issue with the "Evaluate JSON Path Expression." There were no error messages if a claim was not present in the JWT, and the policy continued to run.
However, the new "Evaluate JSON Path Expression V2" returns an error message when a specific claim is not present in the JWT.
This is the expected behavior for the V2 assertion
For the Evaluate JSON Path Expression V1 assertion there was cwp json.evalJsonPathAcceptEmptyArray , preserves the backward compatibility in resulting empty arrays.
This setting does not exist for the "Evaluate JSON Path Expression V2" assertion .
To have the policy continue put it in a " at least one assertion must evaluate to true " with a "continue processing" assertion .
and check the jsonPathv2.found = {Boolean} "false" to determine it failed due to not found claim. .