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

Ability to bypass signature verification #137

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

luis-ca
Copy link

@luis-ca luis-ca commented Sep 1, 2020

Implemented the ability to bypass signature verification as a way to help with upgrading to 2.x. I would suggest this be removed once we get to 3.x.

In our particular case, we do not control the configuration - our users can set up an integration with stripe by providing credentials. It so happens that users on older versions of the API were not required to provide a signing secret. Upgrading to 2.x therefore breaks these implementations.

By default, signature verification is enforced. Set the skip_signature_verification attribute to true to bypass verification.

StripeEvent.skip_signature_verification = true

The implementation relies on using Stripe::Event.construct_from directly.

@coveralls
Copy link

coveralls commented Sep 1, 2020

Coverage Status

Coverage decreased (-0.8%) to 99.174% when pulling 6ef8344 on fullfabric:ability_to_bypass_signature_verification into 5ef8578 on integrallis:master.

@rmm5t rmm5t force-pushed the master branch 2 times, most recently from 570da99 to fa1db30 Compare September 17, 2023 14:00
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

Successfully merging this pull request may close these issues.

2 participants