Created
November 23, 2017 20:11
-
-
Save bcswartz/7bafa12518eeb849da36b4860bba1538 to your computer and use it in GitHub Desktop.
CSRF protection example in a ModelGlue-based ColdFusion app, part 2
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
<event-types> | |
<event-type name="permitted"> | |
<before> | |
<broadcasts> | |
<message name="checkAuthorization" /> | |
<message name="secureTransmissionURL" /> | |
</broadcasts> | |
<results> | |
...<!--Whatever you do if user is not authenticated yet--> | |
</results> | |
</before> | |
</event-type> | |
<event-type name="validateTransmission"> | |
<before> | |
<broadcasts> | |
<message name="validateTransmissionURL" /> | |
</broadcasts> | |
<results> | |
<result name="invalidTransmission" append="validationProblem" do="invalidTransmission" redirect="true" /> | |
</results> | |
</before> | |
</event-type> | |
</event-types> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment