mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
How I can register my own Handlebars Helper #459
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @THenryT on GitHub (Oct 17, 2022).
Originally assigned to: @StefH on GitHub.
I am trying to create a dynamic JWT token in response. I know Wiremock.NET does not support it, and if it is possible to that I can create a handlebars helper to generate a jwt token for example {{Jwt iss="localhost:9001"}} and then the response will return a jwt token?
@StefH commented on GitHub (Oct 17, 2022):
@THenryT
This is indeed possible, you can call your handlebars registration code in the WireMockServerSettings : HandlebarsRegistrationCallback.
Example: