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

Allow GET requests in specs #118

Closed
wants to merge 1 commit into from
Closed

Allow GET requests in specs #118

wants to merge 1 commit into from

Conversation

dmathieu
Copy link
Contributor

Changes

This is not something anyone should do in production. But in tests, this
allows us to bypass CSRF.

Following CVE-2015-9284, omniauth now has GET requests disabled by default.
While this is a good behavior in real environments, it's makes things a bit harder in tests, as we'd have to generate a valid CSRF token.

This change allows bypassing it (and running tests on the latest omniauth) by allowing GET requests and keep using them.

References

See Omniauth CVE: https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284

Testing

This change changes only the unit tests, not actual behavior.

Checklist

This is not something anyone should do in production. But in tests, this
allows us to bypass CSRF.
@dmathieu dmathieu requested a review from a team as a code owner January 14, 2021 08:51
This was referenced Jan 14, 2021
@davidpatrick
Copy link
Contributor

merged in #116

@dmathieu dmathieu deleted the spec-allowed-request-methods branch January 15, 2021 19:42
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