diff options
| author | Michael Merickel <michael@merickel.org> | 2016-04-18 10:15:32 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-04-19 02:16:13 -0500 |
| commit | de3d0c784198796285ddc4c80e45b8082ecab9e2 (patch) | |
| tree | a36ce9be865bf0d376f9388318a75d8e2c1b4b39 /docs/narr/introspector.rst | |
| parent | 6c16fb020027fac47e4d2e335cd9e264dba8aa3b (diff) | |
| download | pyramid-de3d0c784198796285ddc4c80e45b8082ecab9e2.tar.gz pyramid-de3d0c784198796285ddc4c80e45b8082ecab9e2.tar.bz2 pyramid-de3d0c784198796285ddc4c80e45b8082ecab9e2.zip | |
replace pyramid.require_default_csrf setting with config.set_default_csrf_options
Diffstat (limited to 'docs/narr/introspector.rst')
| -rw-r--r-- | docs/narr/introspector.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/narr/introspector.rst b/docs/narr/introspector.rst index 98315ac9f..c9fecd4f4 100644 --- a/docs/narr/introspector.rst +++ b/docs/narr/introspector.rst @@ -337,6 +337,31 @@ introspectables in categories not described here. The permission name passed to ``set_default_permission``. +``default csrf options`` + + There will be one and only one introspectable in the ``default csrf options`` + category. It represents a call to the + :meth:`pyramid.config.Configurator.set_default_csrf_options` method. It + will have the following data. + + ``require_csrf`` + + The default value for ``require_csrf`` if left unspecified on calls to + :meth:`pyramid.config.Configurator.add_view`. + + ``token`` + + The name of the token searched in ``request.POST`` to find a valid CSRF + token. + + ``header`` + + The name of the request header searched to find a valid CSRF token. + + ``safe_methods`` + + The list of HTTP methods considered safe and exempt from CSRF checks. + ``views`` Each introspectable in the ``views`` category represents a call to |
