summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-30restore the ``ICSRFStoragePolicy.check_csrf_token`` apiMichael Merickel
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-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-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-08Merge pull request #2990 from stevepiercy/masterSteve Piercy
grammar fix
2017-04-08grammar fixSteve Piercy
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
2017-03-28require "open_url" setting in order to know what browser to openMichael Merickel
Parsing the port from the server section could be brought back but it would be a fallback that depends on finding a "port" variable in the [server:server_name] section of the config.
2017-03-28depend on python_requires in pip 9+ to check runtime versionsMichael Merickel
- The python_requires checks work when installing a wheel as well, which these checks did not affect.
2017-03-28add python_requires metadataMichael Merickel
2017-03-14Merge pull request #2981 from stevepiercy/masterSteve Piercy
add Mako to options for pyramid-cookiecutter-starter
2017-03-14add Mako to options for pyramid-cookiecutter-starterSteve Piercy
2017-03-12update twitter handleSteve Piercy
2017-03-10Merge pull request #2978 from stevepiercy/masterSteve Piercy
add wikipedia to releasing
2017-03-10add wikipedia to releasingSteve Piercy
2017-03-10Merge pull request #2976 from stevepiercy/masterSteve Piercy
add Chameleon as option to pyramid-cookiecutter-starter
2017-03-10add Chameleon as option to pyramid-cookiecutter-starterSteve Piercy
2017-03-05add changelog for #2962Michael Merickel
2017-03-05Merge pull request #2962 from Natim/2961-hupper-call-brokenMichael Merickel
Pserve --reload does not keep worker arguments. Fixes #2961
2017-03-03changelog for #2967Michael Merickel
2017-03-03Merge pull request #2967 from Cykooz/fix.memory-leaksMichael Merickel
Fixed several reference cycles to prevent memory leaks.
2017-03-03@mmerickel review.Rémy HUBSCHER
2017-03-02Reverted useless changes in tests.Kirill Kuzminykh
2017-03-02Reverted couple useless fixes of memory leaks.Kirill Kuzminykh
2017-03-01Merge pull request #2969 from stevepiercy/masterSteve Piercy
use correct directory name for cookiecutter generated README.txt
2017-03-01use correct directory name for cookiecutter generated README.txtSteve Piercy
(cherry picked from commit 40dd034) Refs: https://github.com/Pylons/pyramid-cookiecutter-starter/pull/22
2017-03-01The memory leaks test skipped for platform 'pypy'.Kirill Kuzminykh
2017-03-01Added a new contributor into the CONTRIBUTORS.txtKirill Kuzminykh
2017-03-01Fixed several reference cycles to prevent memory leaks. Added simple test ↵Kirill Kuzminykh
for detect memory leaks after application closing.
2017-02-28cache pip wheels in travis buildsMichael Merickel
2017-02-28Merge pull request #2965 from stevepiercy/masterSteve Piercy
update pyramid-cookiecutter-starter prompts and reformat presentation…
2017-02-28add changelog for #2964Michael Merickel
2017-02-28Merge pull request #2964 from mmerickel/execution-policyMichael Merickel
add an IExecutionPolicy
2017-02-28update pyramid-cookiecutter-starter prompts and reformat presentation of all ↵Steve Piercy
cookiecutter prompts
2017-02-27Rewrite test without mock.Rémy HUBSCHER
2017-02-25Merge pull request #4 from bertjwregeer/execution-policyMichael Merickel
Add newline to make docs happy