AnsweredAssumed Answered

Encode Json Web Token using JWK

Question asked by Viveknalwa on Feb 6, 2018
Latest reply on Feb 22, 2018 by hogma01

Issue : I am trying to create JWT using the "Encode Json Web Token assertion". In this assertion I am passing the JWK or JWKS created by "Create Json Web Key" assertion, But the assertion failing with the below error.

 

Error in logs : JOSE Error: Error parsing json: Unexpected character (j) at position 0.

Observation :  JWK key created by "Create Json Web Key" assertion uses the "Recipient Public Key" not private key as shown in the screenshot. The output JWK from this assertion doesn't include the parameter "d". It shows that JWK is created using the public key not private one that's why its failing.

 

Has anybody used this approach?

Outcomes