diff options
| author | Theron Luhn <theron@luhn.com> | 2019-04-15 19:01:37 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2019-04-15 19:01:37 -0700 |
| commit | 8536f3ab834b4da7cc24a88855a3f883929b5b1e (patch) | |
| tree | af41e71e43efd8315a74cb67b5d790200a1d7e7e /src | |
| parent | b05b66e77b9851ff2ed912b6b8bfa0d5068febd1 (diff) | |
| download | pyramid-8536f3ab834b4da7cc24a88855a3f883929b5b1e.tar.gz pyramid-8536f3ab834b4da7cc24a88855a3f883929b5b1e.tar.bz2 pyramid-8536f3ab834b4da7cc24a88855a3f883929b5b1e.zip | |
Register security policy in phase 2.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/config/security.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pyramid/config/security.py b/src/pyramid/config/security.py index ac7dcef43..e8ea0878d 100644 --- a/src/pyramid/config/security.py +++ b/src/pyramid/config/security.py @@ -49,8 +49,12 @@ class SecurityConfiguratorMixin(object): 'security policy', ) intr['policy'] = policy - # authentication policy used by view config (phase 3) - self.action(ISecurityPolicy, register, introspectables=(intr,)) + self.action( + ISecurityPolicy, + register, + order=PHASE2_CONFIG, + introspectables=(intr,), + ) @action_method def set_authentication_policy(self, policy): |
