forked from elixir-plug/plug
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Plug.CSRFProtection tests (elixir-plug#1233)
* 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.
- Loading branch information
1 parent
27a81cb
commit a317031
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters