Rainer Scholz
08/05/2024, 1:06 PMGET /activate?providerId=foo&token=eyJraWQ....
request.
• Inside my response I require providerId
which is no big deal: "{{request.query.providerId}}"
• But I need the subject sub
from the Jwt as well. I tried "{{jwt path='sub' token=request.query.token}}"
but this gives me just the whole token in return.
Any advice will be highly appreciated.Tom
08/05/2024, 1:25 PM.
using {{regexExtract ...}}
• Base64 decode the second chunk using {{base64 decode=true ...}}
• Parse the resulting JSON using {{parseJson …}}
• Get the sub
attribute from the resulting model