Getting an parsing error while processing the JWT that receives from external system ..
1) Processing jwt profile is created.
2) Passing the profile name along with jwt to pxProcessJWT but getting parsing error .
- Unable to process the Json Web Token
com.pega.pegarules.pub.PRRuntimeException: Parsing error occurred
at com.pega.pegarules.integration.engine.internal.security.jwt.JWTUtilsImpl.processJSONWebToken(JWTUtilsImpl.java:216) ~[printegrint.jar:?]
at com.pegarules.generated.activity.ra_action_pxprocessjwt_b0ef86dd175b625d97616556f8dcb044.step3_circum0(ra_action_pxprocessjwt_b0ef86dd175b625d97616556f8dcb044.java:374) ~[?:?]
at com.pegarules.generated.activity.ra_action_pxprocessjwt_b0ef86dd175b625d97616556f8dcb044.perform(ra_action_pxprocessjwt_b0ef86dd175b625d97616556f8dcb044.java:108) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10845) ~[prprivate.jar:?]
at com.pegarules.generated.activity.sh_action_processjwt_912de2b8cc98c28eec606c94affc215c.step2_circum0(sh_action_processjwt_912de2b8cc98c28eec606c94affc215c.java:245) ~[?:?]
at com.pegarules.generated.activity.sh_action_processjwt_912de2b8cc98c28eec606c94affc215c.perform(sh_action_processjwt_912de2b8cc98c28eec606c94affc215c.java:91) ~[?:?]
Did you were able to verify your token on jwt.io successfully? You token might be not valid.
If the Token is generally valid:
We had in the past also some issued by processing JSON Web Token in Pega which got generated from external systems.
One finding was: Pega is using the nimbus library, at least in Pega 7.31. Generating the token with the same settings but with another library, we were ot manage to process the token. This was very strange, but at least after we changed the library to nimbus in the external java programm it worked fine.