summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2013-10-30not methods, attrsChris McDonough
2013-10-30wordingChris McDonough
2013-10-30renderingChris McDonough
2013-10-28wording and specify return valueChris McDonough
2013-10-28add NB notes about recursive add_response_callback policies, use req instead ↵Chris McDonough
of self for normalization with exception getting
2013-10-28avoid a deprecation warning during test runsChris McDonough
2013-10-28defer looking up headers until the response callback is called (FBO things ↵Chris McDonough
like sessionauthenticationpolicy which does its own header-setting when its remember/forget methods are called)
2013-10-28add on_exception flag to remember/forget, fix a bug in _remember_userid and ↵Chris McDonough
_forget_userid (these should always return a sequence even if there is no authentication policy), defactorize tests
2013-10-28Bring change log, API docs, and deprecations in line with normal ↵Chris McDonough
policies/processes
2013-10-28Merge branch 'security-apis-on-request' of github.com:mgrbyte/pyramid into ↵Chris McDonough
mgrbyte-security-apis-on-request
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-26Bring coverage back to 100%Bert JW Regeer
2013-10-26digestmod() has to accept a parameter in certain casesBert JW Regeer
Due to line 69 in hmac.py in the Python standard library (2.7) it expects to be able to call the digestmod function with the current key if the key passed in exceeds the block size in length. This fixes the code so that digestmod can accept string as an extra parameter, which is passed through to hashlib.new() [1]: http://hg.python.org/cpython/file/2.7/Lib/hmac.py#l69
2013-10-20notfound and forbidden decorators were ignoring view_defaultsMichael Merickel
This could be fixed in other ways but the basic problem is that because config.add_notfound_view and config.add_forbidden_view have actual signatures instead of *args, **kwargs, the arguments are squashing the view_defaults which are applied later on the call to config.add_view. Basically, by the time the args get to config.add_view, they look explicit when they are not. fix #1173
2013-10-20fix merge conflict and prevent warning from showing up during testing (dont ↵Chris McDonough
import ITemplateRenderer)
2013-10-20add a note so we can defend the choice laterChris McDonough
2013-10-20Merge branch 'master' into fix.basic-authentication-encodingsChris McDonough
2013-10-20fix merge conflictChris McDonough
2013-10-19remove unnecessary length check, slices are magicMichael Merickel
2013-10-19moar typosMichael Merickel
2013-10-19remove redundant "see"Michael Merickel
2013-10-19add admonishment against secret sharingChris McDonough
2013-10-19use zope.deprecation for warning about the ↵Chris McDonough
UnencryptedCookieSessionFactoryConfig deprecation (it will happen at import time, rather than usage time, which is good for tests); add a few sphinx directives for deprecated and versionadded
2013-10-19modify the docs for the renderer interfacesMichael Merickel
2013-10-19fix tests on py3Michael Merickel
2013-10-19attempt to decode basic header as utf-8 and fallback to latin-1Michael Merickel
fixes #898 fixes #904
2013-10-19Merge branch 'master' of Cuidightheach/pyramid into ↵Michael Merickel
fix.basic-authentication-encodings
2013-10-19Merge branch 'master' into feature.signed-cookie-sessionMichael Merickel
2013-10-19update doc referencesMichael Merickel
2013-10-19move HTTPBadCSRFToken to p.exceptions.BadCSRFTokenMichael Merickel
2013-10-19Merge branch 'check_csrf_token' of kpinc/pyramid into ↵Michael Merickel
feature.bad-csrf-token-exception
2013-10-19update the docsMichael Merickel
2013-10-19fix tests on python 3Michael Merickel
2013-10-19add deprecation for old cookie factoryMichael Merickel
2013-10-19update session to use a static salt and separate serialize funcsMichael Merickel
2013-10-09add the ability to run the scripts using "python -m"Michael Merickel
for example:: env/bin/python -3 -m pyramid.scripts.pserve development.ini
2013-10-08Subclass HTTPBadCSRFToken from HTTPBadRequest and have ↵Karl O. Pinc
request.session.check_csrf_token use the new exception. This supports a more fine-grained exception trapping.
2013-10-08remove unused renderer argChris McDonough
2013-10-05fix py3Michael Merickel
2013-10-05introduce SignedCookieSessionFactoryMichael Merickel
- Break apart UnencryptedCookieSessionFactoryConfig into a BaseCookieSessionFactory. - Add support for reissue_time in the base. Set the unencrypted class to use reissue_time=0 for bw-compat. - Add SignedCookieSessionFactory which wraps the base in a serializer that uses signing via a sha512+hmac with a secret derived using an 8-byte random salt.
2013-10-03modification to the unencrypted cookie to use a clearer apiMichael Merickel
improved the signing to use a derived key based on a random salt, and upgraded the hash from sha1 to sha512. Finally the entire result is b64 instead of just the payload.
2013-10-02fix merge conflictChris McDonough
2013-10-02 render the qs such that when provided with None as a value, it will render ↵Chris McDonough
the key plus the equal sign
2013-10-02fix merge conflictChris McDonough
2013-10-01- Fix the ``principals_allowed_by_permission`` method ofChris McDonough
``ACLAuthorizationPolicy`` so it anticipates a callable ``__acl__`` on resources. Previously it did not try to call the ``__acl__`` if it was callable.
2013-10-01- Fix the ``pcreate`` script so that when the target directory name ends with aChris McDonough
slash it does not produce a non-working project directory structure. Previously saying ``pcreate -s starter /foo/bar/`` produced different output than saying ``pcreate -s starter /foo/bar``. The former did not work properly.
2013-10-01remove unused filesChris McDonough
2013-09-28update pviews to work with the bootstrapped requestMichael Merickel
had to fix DummyBootstrap a bit because it fails pretty hard at handling part of bootstrap contract in which the request passed in should be enhanced with the registry, and returned. In some cases the wrong request or the wrong registry were being returned if the test case actually specified a registry or request.
2013-09-28set custom request methods when doing a pview lookupMichael Merickel
2013-09-27support a None value in query string parametersMichael Merickel