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

Add Plug.CSRFProtection tests #1233

Merged

Conversation

thymusvulgaris
Copy link
Contributor

  • Add test that asserts an InvalidCSRFTokenError error is raised when the CSRF token payload is not a Base64 encoded string.

  • Add test that refutes Plug.CSRFProtection.valid_state_and_csrf_token?/2 returns a truthy value when given a CSRF token that is not Base64 encoded.

* Add test that asserts an InvalidCSRFTokenError error is raised
  when the CSRF token payload is not a Base64 encoded string.

* Add test that refutes
  Plug.CSRFProtection.valid_state_and_csrf_token?/2 returns a
  truthy value when given a CSRF token that is not Base64 encoded.
@josevalim josevalim merged commit a317031 into elixir-plug:main Jun 24, 2024
2 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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