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

Generate test signature #436

Open
jgayfer opened this issue Sep 12, 2023 · 1 comment
Open

Generate test signature #436

jgayfer opened this issue Sep 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jgayfer
Copy link

jgayfer commented Sep 12, 2023

Problem

Testing signature verification end to end is challenging, as it requires generating a time sensitive, encoded signature.

There are options to work around this like stubs, or alternate code flows under test, but ideally an integration test goes completely end to end, where the incoming request + signature is fully validated.

Solution

It would be great if this crate provided a way to more easily generate test signatures.

Other Stripe libraries provide this functionality, like stripe-node.

Alternatives

The signature can be generated manually, but it's an error prone operation that would be great to have a standard definition for.

I'm aware that #374 exists, but it doesn't lend itself to full end to end testing as it requires an alternative code flow.

@arlyon arlyon added the enhancement New feature or request label Sep 21, 2023
@arlyon
Copy link
Owner

arlyon commented Sep 21, 2023

Hi! I am going to label this as a feature request. I don't currently have bandwidth to take this on at the moment but very happy to help with the PR (if someone beats me to it..).

Cheers

Alex

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

No branches or pull requests

2 participants