Skip to content
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

Support JWT Validation #82

Open
canny bot opened this issue Jun 26, 2024 · 1 comment
Open

Support JWT Validation #82

canny bot opened this issue Jun 26, 2024 · 1 comment

Comments

@canny
Copy link

canny bot commented Jun 26, 2024

(requested on behalf of a customer)

The use case I wanted to highlight with Pact was to verify the JWT OAuth token structure in the header. We have already dealt with mocking credentials/bypassing credentials in a previous company but the issue we faced here are that the contents of the token kept changing (weird yes, but hence wanting to use this tool to show the value).

I wanted to make sure that the JWT token contents itself were validated via Pact. If that is not “reasonable” fine, but I was hoping there was an example of header decoding and verification. Specifics are that JWT is base64 encoded, the structure and contents of the token are mappable and verifiable, and we want to make sure the header contents when decoded are correct or when they do change it fails. Theoretically the token contents shouldn’t change frequently, but we’ve had it change enough times that it barely made it in as something I’d like to test with Pact and enforce via the contracts.

https://pact.canny.io/admin/board/feature-requests/p/support-jwt-validation

Copy link
Author

canny bot commented Jun 26, 2024

This issue has been linked to a Canny post: Support JWT Validation 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants