Overview
Generate and validate JSON web tokens for use in integrating and authenticating with external systems, using a JWKS registry to get public keys for token signature validation. The create token functions support encrypted private keys in either the PKCS#1 or PCKS#8 standard.
Key Features & Functionality
Hello Will,
Great that you like it, and happy to help here. The GUID in itself should not be the problem, I am using similar GUID in my own use case. are you perhaps passing this value into the exp field? Or, what might be the case, did you not include the exp (with a null value) in your call? Plugins will not handle named parameters as you expect them. It will simply map each parameter based on order and ignore the naming you specified. If you omitted exp: null in your call, it will think the value you entered for sub should go for the exp parameter, which expects an int, not a string.
Raymond, you are absolutely right, I hadn't even thought about that piece! I was unintentionally omitting the 'exp' field, and that was the problem. I saw that the value would default in the .java file for it and leapt to conclusions, and failed to include a null parameter for it. Goes to show even after years of this the little things can still come back to bite you.
For anyone else who runs into a similar issue, here is an example usage of the function:
fn!createdocusignrsajwttoken( externalSystemKey: "docusign", iss: "XXXXXX-XXXX-XXXXX-XXXXX", alg: "RS256", typ: "JWT", aud: "account-d.docusign.com", scope: "signature impersonation", exp: "", sub: "XXXXXX-XXXX-XXXXX-XXXXX" )
Thanks again!
It works now! Thanks a lot for your help Will Ruck.