summaryrefslogtreecommitdiff
path: root/tests/test_security.py
AgeCommit message (Collapse)Author
2019-12-15Revert "Bring back identity into permits."Theron Luhn
This reverts commit 2e06fa414412688dc3b7e0b422b0fc0b96ec882f.
2019-12-14Fix coverage.Theron Luhn
2019-12-14Bring back identity into permits.Theron Luhn
2019-12-14Raise error on kwargs in `LegacySecurityPolicy.forget`.Theron Luhn
2019-12-14Don't test request.authenticated_userid stringifies the result.Theron Luhn
2019-12-14Remove failing tests using threadlocal request.Theron Luhn
It shoud be okay to remove because threadlocal support was removed from the security implementation. However, *I don't understand why they started failing.* In master, `get_current_registry` returns a registry object, which DummyRequest will fall back on, causing the tests to pass and rendering them useless. On this branch, it returns `None`, causing the tests to fail. I can't find any reason in the diff why this would change. This makes me nervous.
2019-12-14start reworking security policyÉric Araujo
2019-05-12Rename request.identity to request.authenticated_identity.Theron Luhn
2019-04-15Move ACLHelper to pyramid.authorizations.Theron Luhn
2019-04-15Move SessionAuthenticationHelper to pyramid.authentication.Theron Luhn
2019-04-15Revert "Migrate AuthTktCookieHelper to pyramid.security."Theron Luhn
This reverts commit 9f267dd842c5e93336f0392f2809da75a716039a.
2019-04-15Stringify identity in legacy authenticated_userid.Theron Luhn
2019-03-30Migrate AuthTktCookieHelper to pyramid.security.Theron Luhn
2019-03-30Fix formatting.Theron Luhn
2019-03-30Add SessionAuthenticationHelper.Theron Luhn
2019-03-30Implement pyramid.security.ACLHelperTheron Luhn
Mostly a lift-and-shift of the code in ACLAuthorizationPolicy.
2019-03-09Reimplement remember and forget.Theron Luhn
This breaks some more tests.
2019-03-03Implement new request.has_permission.Theron Luhn
Deleted AuthorizationAPIMixin
2019-03-03Implement bw-compat authenticated_userid and unauthenticated_useridTheron Luhn
2019-02-26Add `request.identity`.Theron Luhn
2019-02-17Implement legacy security policy.Theron Luhn
2018-11-01remove deprecated security functionsMichael Merickel
2018-10-15format source using blackMichael Merickel
2018-10-14move tests out of the packageMichael Merickel