-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: enhance Pact to understand signed JWT payloads. #356
Comments
A few other questions:
|
This could be implemented as a plugin |
Sorry for the delay replying, I didn't see a notification - probably gone in the spam. Anyway:
|
I've just looked at the plugin documentation that I could find and it looks like the pact would look more like this?
That would work, but seems less user friendly and type safe. |
Yes, the "raw" (my words) plugin interface is not as typesafe, but I believe there is nothing stopping anyone from creating a typesafe wrapper over the top of it. |
We are using pact to test endpoints that return signed JWTs. As JWTs are not plain json we can't specify the structure of the data using
newJsonBody()
etc which makes our tests quite brittle.Signed JWTs are strings of the form
<header>.<body>.<signature>
where each of the three parts is base64 encoded. It would be great if the pact framework could support something like this when specifying a pact (JVM syntax):https://jwt.io/ is very useful for experimenting with and validating JWTs
The text was updated successfully, but these errors were encountered: