Apologies if this has already been asked but my se...
# wiremock-java
t
Apologies if this has already been asked but my searching didn't throw anything up I want to match a request using a form parameter, but the form parameter is a base64 encoded string (specifically it is a JWT token) and the value I want to match is not base64 encoded. Hence need use regex to capture a group, base64 decode that group, and then either json or string match again the value I have I know how to extract this value and decode at response time using the helpers but can't see how to do this for an incoming request. Note doing this at response time would require knowledge all possible incoming and outgoing values which is not possible as they are determined by test scenarios and hence the desired mapping is also generated at run time and needs to be associated with the specific form parameter.
For context I am using Wiremock standalone
r
this is not something that wiremock supports out of the box currently, although would be a great addition to the project. you'll likely have to specific a custom matcher via an extension to get the functionality you're looking for
t
Thank you for coming back to me. I'll looking into a custom matcher extension.
👍 1