Matthew Wilkes
2016-12-05 a2c7c7a49bceeaaab2853e7e73c3671979d4c9ed
refs
author Matthew Wilkes <git@matthewwilkes.name>
Monday, December 5, 2016 12:16 +0100
committer Matthew Wilkes <git@matthewwilkes.name>
Wednesday, April 12, 2017 13:13 +0200
commita2c7c7a49bceeaaab2853e7e73c3671979d4c9ed
tree bdc3640fad15bc3ea257df26399ff8aaaee14bd1 tree | zip | gz
parent 387993115ee777784654c95d9f2f8d8ce7c4f5e4 view | diff
Create a new ICSRF implementation for getting CSRF tokens, split out from the session machinery.

Adds configuration of this to the csrf_options configurator commands. Make the default implementation a fallback to the old one. Documentation patches for new best practices given updates CSRF implementation.
3 files added
14 files modified
1086 ■■■■■ changed files
CHANGES.txt 12 ●●●●● diff | view | raw | blame | history
docs/api/csrf.rst 18 ●●●●● diff | view | raw | blame | history
docs/api/interfaces.rst 3 ●●●●● diff | view | raw | blame | history
docs/api/session.rst 4 ●●●● diff | view | raw | blame | history
docs/narr/security.rst 191 ●●●●● diff | view | raw | blame | history
docs/narr/sessions.rst 175 ●●●●● diff | view | raw | blame | history
pyramid/config/security.py 16 ●●●●● diff | view | raw | blame | history
pyramid/config/views.py 14 ●●●●● diff | view | raw | blame | history
pyramid/csrf.py 286 ●●●●● diff | view | raw | blame | history
pyramid/interfaces.py 29 ●●●●● diff | view | raw | blame | history
pyramid/predicates.py 2 ●●● diff | view | raw | blame | history
pyramid/renderers.py 1 ●●●● diff | view | raw | blame | history
pyramid/session.py 155 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_config/test_views.py 2 ●●● diff | view | raw | blame | history
pyramid/tests/test_csrf.py 172 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_session.py 4 ●●●● diff | view | raw | blame | history
pyramid/viewderivers.py 2 ●●● diff | view | raw | blame | history