summaryrefslogtreecommitdiff
path: root/docs/narr/security.rst
AgeCommit message (Collapse)Author
2017-10-18csrf documentation changeBen Fagin
2017-04-30standardize "non-standard"Steve Piercy
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-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-12Rename implementation to ICSRFStoragePolicyMatthew Wilkes
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.
2016-06-09grammar, spelling, wrapping fixSteve Piercy
2016-06-08Adding a warning discouraging use of __acl__ properties attributesJulien MIOTTE
2015-10-31minor grammar, rewrap to 79 columnsSteve Piercy
2015-02-17enhance security docs with an example of subclassing a builtin policyMichael Merickel
2015-02-17grammarMichael Merickel
2014-08-13some tweaks to the usage of userid in the docsMichael Merickel
2014-08-12Docs: Switched first 2 paragraphs of security overview.Karl O. Pinc
2014-08-12Docs: Add resource tree into security overview.Karl O. Pinc
2014-08-12Docs: Include the concept of credentials in the high level security overview.Karl O. Pinc
2014-08-12Docs: Make "userid" link to the glossary term.Karl O. Pinc
2014-08-12Security: Change "principal" argument in security.remember() to "userid".Karl O. Pinc
Make the change througout the authentication policies, etc. as well.
2014-08-12Docs: Make clear that a userid need not be a principal.Karl O. Pinc
2014-02-10- Garden PR #1121Steve Piercy
2013-10-27Security APIs on pyramid.request.RequestMatt Russell
The pyramid.security Authorization API function has_permission is made available on the request. The pyramid.security Authentication API functions are now available as properties (unauthenticated_userid, authenticated_userid, effective_principals) and methods (remember_userid, forget_userid) on pyramid.request.Request. Backwards compatibility: For each of the APIs moved to request method or property, the original API in the pyramid.security module proxies to the request. Reworked tests to check module level b/c wrappers call through to mixins for each API. Tests that check no reg on request now do the right thing. Use a response callback to set the request headers for forget_userid and remember_userid. Update docs. Attempt to improve a documentation section referencing the pyramid.security.has_permission function in docs/narr/resources.rst Ensures backwards compatiblity for `pyramid.security.forget` and `pyramid.security.remember`.
2013-10-19monChris McDonough
2013-10-19add admonishment against secret sharingChris McDonough
2013-04-05fix some cross-referencesTshepang Lekhonkhobe
2013-03-22remove unused ignore-next-block directiveTshepang Lekhonkhobe
2013-03-18reorder some imports to be alphabeticalMichael Merickel
2013-03-18support acl as a callableMichael Merickel
2013-03-13consistency: use $VENV whenever virtualenv binaries are usedTshepang Lekhonkhobe
2013-03-10Merge pull request #903 from tshepang/patch-4Tres Seaver
capitalize
2013-03-10Merge pull request #902 from tshepang/patch-3Tres Seaver
change awkward sentence
2013-03-10capitalizeTshepang Lekhonkhobe
2013-03-10change awkward sentenceTshepang Lekhonkhobe
2013-03-09grammarTshepang Lekhonkhobe
2012-11-04merged SHA512AuthTktAuthenticationPolicy into AuthTktAuthenticationPolicyMichael Merickel
AuthTktAuthenticationPolicy now accepts a hashalg parameter and is no longer deprecated. Docs recommend overriding hashalg and using 'sha512'.
2012-11-04fix docs, upgrade tutorials, add change note, deprecate using ↵Chris McDonough
zope.deprecation instead of a warning, make hashalg arg a kwarg in certain cases in case someone (maybe me) is using nonapi function imports from authentication
2012-01-19fixes #398 .. mention only method-based authN configuration, remove ↵Chris McDonough
indications of constructor value
2011-10-06remove all reference to the paster command-line utilityChris McDonough
2011-09-07add squishy whats-unique section to introductionChris McDonough
2011-08-22- Use [app:main] instead of a pipeline in all scaffolds and tutorialsChris McDonough
and narrative docs. - Break out awkward description of PasteDeploy entry points from project chapter into its own Paste chapter.
2011-08-09Added the `pyramid.security.NO_PERMISSION_REQUIRED` constant.Michael Merickel
Removed the undocumented version from pyramid.interfaces.
2011-07-30Updated all of the docs to reflect the new pyramid.* settings prefix.Michael Merickel
2011-07-20add more index markersChris McDonough
2011-07-10Adding 'I' to example custom AuthenticationPolicy; it's an interface.ejo
2011-02-28Fix authentication policy example.Chris McDonough
Closes #137
2011-02-05fix conflictsChris McDonough
2011-02-02Wrong name for variableChris Beelby
2011-02-02Capitalization fixChris Beelby
2011-01-30remove reference to ZCML directives; doesnt work in printed bookChris McDonough
2011-01-27module name contractionsChris McDonough