summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/authorization.rst
AgeCommit message (Collapse)Author
2024-02-07docs: update ZODB wiki tutorial to cookiecutterTres Seaver
- Describe 'pyproject.toml' usage (replacing 'setup.py', 'pytest.ini', '.coveragerc'). - Document the new PyPA-blessed build process.
2021-01-09Align code lines, revise authorization.rst view application sub-stepSteve Piercy
2020-10-13Rename `ISecurityPolicy.authenticated_identity` to `identity`Theron Luhn
2020-01-16update docs with pyramid.authorizatio imports after syncing masterMichael Merickel
2020-01-15Minor grammar fixesSteve Piercy
- Swap order of editing tutorial/views/default.py so that line numbers in the user's editor align with the rendered docs
2020-01-12update wiki authorization chapterMichael Merickel
2020-01-02Update docs/tutorials/wiki/authorization.rst and related src filesSteve Piercy
2018-11-25Align line numbers with codeSteve Piercy
- See https://github.com/Pylons/pyramid-cookiecutter-starter/pull/66
2018-11-25rewrap review, shorter sentences, fix grammar.Steve Piercy
align line numbers with code.
2018-11-25indent literalincludes, add login.pt template and viewSteve Piercy
2018-11-25rewrap policies and permissions sections, shorter sentences, fix grammarSteve Piercy
2018-11-25rewrap add an ACL section, shorter sentences, fix grammarSteve Piercy
2018-11-25rewrap users and groups section, shorter sentences, fix grammarSteve Piercy
2018-11-25We're adding both authn and authzSteve Piercy
2018-11-25Rewrap intro and add dependencies to authorizationSteve Piercy
2018-08-30Update wiki with zodb cookiecutter source filesSteve Piercy
2018-04-24link to pypi.orgMichael Merickel
2017-08-03update zodb wiki files to synch with its cookiecutter using context managerSteve Piercy
2017-06-11fix out of range errorSteve Piercy
2017-06-10synch emphasize-lines with src files for zodb wiki tutorialSteve Piercy
2017-05-17adjust emphasize-lines rangeSteve Piercy
2016-12-23readjust line numbersSteve Piercy
2016-12-23Use cookiecutter instead of scaffold and pcreateSteve Piercy
- minor grammar and reST fixes
2016-12-08minor grammar and style fixes for wiki/authorizationSteve Piercy
2016-12-07Hashing helpers now deal in unicode. Fixed wording. Added link to bcrypt and ↵Martin
a footnote from wiki2 example.
2016-12-06Changed wiki tutorial to showcase passwrd hashing with bcrypt. Relates to #2204Martin
2016-04-10- update wiki authorization step and its src filesSteve Piercy
- trim index
2016-02-23Fix view name order, windows for 'Return logged_in to renderer.Tres Seaver
2015-05-27- clean up and make consistent across wiki tutorialsSteve Piercy
- update templates and static assets for new design
2015-05-27- clean up and make consistent across both wikis authorization.rstSteve Piercy
- update templates and static assets to new theme
2015-03-13Update code exampleSteve Piercy
Modify `lines` to include closing parens in source and update corresponding `emphasize-lines`. Closes #1606.
2013-11-17Removed extra indentation from some examples (:linenos: should be indented ↵Antti Haapala
with the same indentation as the rest of the code block)
2013-11-09undeprecate remember/forget functions and remove ↵Chris McDonough
remember_userid/forget_userid methods from request
2013-10-30fix zodb tutorial wrt request-based authentication and authorization apisChris McDonough
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-03-07Grammar fixes.Steve Piercy
Align code in docs with that in the src directory.
2013-03-06Grammar fixesSteve Piercy
2013-01-20point to the sources of the wiki tutorials in just one location; fix #763Tshepang Lekhonkhobe
* This avoids having to update the link multiple times. * Also, mention their location, in case user has Pyramid checkout.
2012-12-01Update line referencesPatricio Paez
- In the Basic Layout and Authorization chapters of the ZODB wiki tutorial
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-04-08Final detailsPatricio Paez
- Normalize the Seeing our changes section - Changed import to recommended style
2012-04-08Normalize Authorization in both tutorials 4Patricio Paez
- Sync content of Add login and logout views, Add the login.pt template, Return a logged_in flag, Add a logout link sections - Normalize sections of views.py
2012-04-08Normalize Authorization in both tutorials 3Patricio Paez
- Sync content in Adding Authentication and Authorization policies, Add permission declarations sections - Added mising permission=view in SQL tutorial - Moved __init__.py listing to Seeing our changes
2012-04-07Normalize Authorization in both tutorials 2Patricio Paez
- Sync content of Add users and groups, and Add an ACL. - Added yellow highlight to listings in Seeing our changes, added models.py
2012-04-07Ordered sections as per the summaryPatricio Paez
2012-04-07Normalize Authorization in both tutorials 1Patricio Paez
- Sync the content of the introduction and the Viewing the Application in a Browser sections - Sync the section structure
2012-03-17master->1.3-branchChris McDonough
2012-02-22- New API: ``pyramid.config.Configurator.add_forbidden_view``. This is aChris McDonough
wrapper for ``pyramid.Config.configurator.add_view`` which does the right thing about permissions. It should be preferred over calling ``add_view`` directly with ``context=HTTPForbidden`` as was previously recommended. - New API: ``pyramid.view.forbidden_view_config``. This is a decorator constructor like ``pyramid.view.view_config`` that calls ``pyramid.config.Configurator.add_forbidden_view`` when scanned. It should be preferred over using ``pyramid.view.view_config`` with ``context=HTTPForbidden`` as was previously recommended. - Updated the "Creating a Not Forbidden View" section of the "Hooks" chapter, replacing explanations of registering a view using ``add_view`` or ``view_config`` with ones using ``add_forbidden_view`` or ``forbidden_view_config``. - Updated all tutorials to use ``pyramid.view.forbidden_view_config`` rather than ``pyramid.view.view_config`` with an HTTPForbidden context.
2012-01-29show decorators along with view callables, fixes #393Chris McDonough