Skip to content

Generate test signature #436

@jgayfer

Description

@jgayfer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions