summaryrefslogtreecommitdiff
path: root/tests/test_security.py
AgeCommit message (Collapse)Author
2020-10-13Rename `ISecurityPolicy.authenticated_identity` to `identity`Theron Luhn
2020-07-12Run isort 5.x across code baseBert JW Regeer
2020-07-02add tests and docsÉric Araujo
2020-04-19Replace deprecated unittest alias assertEquals with assertEqualSergey Maranchuk
https://docs.python.org/3/library/unittest.html#deprecated-aliases
2020-04-17inheriting from `object` not necessary in py3Sergey Maranchuk
2019-12-30rename identify(request) to authenticated_identity(request)Michael Merickel
2019-12-24security policy docs and legacy policy improvementsMichael Merickel
- Added `set_security_policy`` to more places in the docs. - Ensure that the authn/authz policies are not used at all if the legacy policy is not in effect to avoid edge cases where the code would skip the security policy and use the authn/authz policy on accident. - Change deprecation warnings in code to reference the docs by name instead of by URL.
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