summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-30Merge pull request #3019 from mmerickel/fixes/csrf-decoupling-2854Michael Merickel
Decouple CSRF protection from the session machinery (replaced #2854)
2017-04-30Merge branch 'master' into pr/2854Michael Merickel
2017-04-30restore the ``ICSRFStoragePolicy.check_csrf_token`` apiMichael Merickel
2017-04-29add changelog for #2874Michael Merickel
2017-04-29Merge pull request #2874 from mmerickel/config-context-managerMichael Merickel
turn the Configurator into a context manager
2017-04-29final cleanup of csrf decoupling in #2854Michael Merickel
- Renamed `SessionCSRFStoragePolicy` to `LegacySessionCSRFStoragePolicy` for the version that uses the legacy `ISession.get_csrf_token` and `ISession.new_csrf_token` apis and set that as the default. - Added new `SessionCSRFStoragePolicy` that stores data in the session similar to how the `SessionAuthenticationPolicy` works. - `CookieCSRFStoragePolicy` did not properly return the newly generated token from `get_csrf_token` after calling `new_csrf_token`. It needed to cache the new value since the response callback does not affect the current request. - `CookieCSRFStoragePolicy` was not forwarding the `domain` value to the `CookieProfile` causing that setting to be ignored. - Removed `check_csrf_token` from the `ICSRFStoragePolicy` interface to simplify implementations of storage policies. - Added an introspectable item for the configured storage policy so that it appears on the debugtoolbar. - Added a change note on `ISession` that it no longer required the csrf methods. - Leave deprecated shims in ``pyramid.session`` for ``check_csrf_origin`` and ``check_csrf_token``.
2017-04-28Merge pull request #3017 from stevepiercy/masterSteve Piercy
update cookiecutter README.txt throughout docs
2017-04-28update cookiecutter README.txt throughout docsSteve Piercy
- https://github.com/Pylons/pyramid-cookiecutter-starter/pull/28 - https://github.com/Pylons/pyramid-cookiecutter-zodb/pull/7 - https://github.com/Pylons/pyramid-cookiecutter-alchemy/pull/8
2017-04-27Merge pull request #3016 from Natim/fix-rest-exampleBert JW Regeer
Fix underlined title.
2017-04-27Fix underlined title.Rémy HUBSCHER
2017-04-26Move CSRF storage policy registration out of PHASE_1 config and simplify ↵Matthew Wilkes
tests given previous improvements to CSRF.
2017-04-26Apply drafting changes to documentation.Matthew Wilkes
2017-04-24Merge pull request #3012 from stevepiercy/masterSteve Piercy
update user prompt for cookiecutter repo_name
2017-04-23update user prompt for cookiecutter repo_nameSteve Piercy
- refs: https://github.com/Pylons/pyramid-cookiecutter-starter/pull/27#issuecomment-296507821
2017-04-19Merge pull request #2995 from jeremy886/masterMichael Merickel
change cgi.escape to pyramid compat.escape
2017-04-19Merge pull request #3007 from jeremy886/patch-2Michael Merickel
Update CONTRIBUTORS.txt
2017-04-19Update CONTRIBUTORS.txtJeremy Chen
2017-04-17Merge pull request #3004 from stevepiercy/masterSteve Piercy
fix rst syntax for index entries
2017-04-17fix rst syntax for index entriesSteve Piercy
2017-04-16Merge pull request #3001 from whiteroses/fix-typoSteve Piercy
Fix typo in comment.
2017-04-16Fix typo in comment.Ira Lun
2017-04-15Merge pull request #2996 from whiteroses/fix-typoSteve Piercy
Fix a typo in a comment.
2017-04-15Fix a typo in a comment.Ira Lun
2017-04-15Update default.pyJeremy Chen
2017-04-15Update default.pyJeremy Chen
2017-04-15Update default.pyJeremy Chen
2017-04-15Update default.pyJeremy Chen
2017-04-15Merge remote-tracking branch 'Pylons/master'Jeremy Chen
2017-04-12add version tags on set_default_csrf_optionsMichael Merickel
2017-04-12forward port some history changes from 1.8-branchMichael Merickel
2017-04-12docs syntax fixMichael Merickel
2017-04-12Use the webob CookieProfile in the Cookie implementation, rename some ↵Matthew Wilkes
implemenations based on feedback, split CSRF implementation and option configuration and make the csrf token function exposed as a system default rather than a renderer event.
2017-04-12Fix a bug where people that didn't configure CSRF protection but did ↵Matthew Wilkes
configure a session and set explicit checks would see an exception
2017-04-12Rename implementation to ICSRFStoragePolicyMatthew Wilkes
2017-04-12add to contributors listJure Cerjak
2017-04-12Fix tests and documentation in various places, and feedback following reviewJure Cerjak
regarding naming of variables and code cleanup.
2017-04-12Create a new ICSRF implementation for getting CSRF tokens, split out from ↵Matthew Wilkes
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.
2017-04-10Merge pull request #2993 from stevepiercy/masterMichael Merickel
add execution policy to pyramid request processing diagrams
2017-04-10add execution policy to pyramid request processing diagramsSteve Piercy
2017-04-10replace deprecated cgi.escape() with html.escape()Jeremy Chen
As suggested by https://docs.python.org/3.6/library/cgi.html cgi.escape() Deprecated since version 3.2: This function is unsafe because quote is false by default, and therefore deprecated. Use html.escape() instead.
2017-04-08Merge pull request #2990 from stevepiercy/masterSteve Piercy
grammar fix
2017-04-08grammar fixSteve Piercy
2017-04-02turn the Configurator into a context managerMichael Merickel
fixes #2872
2017-04-02Merge pull request #2989 from mmerickel/threadlocal-includeMichael Merickel
push threadlocals while executing config.include functions
2017-04-02add changelog for #2989Michael Merickel
2017-04-02push the threadlocal registry while config.include executesMichael Merickel
2017-04-02add a failing test checking whether the threadlocal registry is active ↵Michael Merickel
during config.include
2017-03-29Merge pull request #2984 from mmerickel/pserve-open-urlMichael Merickel
pserve open_url config setting
2017-03-28changelog for #2984Michael Merickel
2017-03-28support opening the browser via pserve.open_url config settingMichael Merickel