summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-04-15 19:01:37 -0700
committerTheron Luhn <theron@luhn.com>2019-04-15 19:01:37 -0700
commit8536f3ab834b4da7cc24a88855a3f883929b5b1e (patch)
treeaf41e71e43efd8315a74cb67b5d790200a1d7e7e /src
parentb05b66e77b9851ff2ed912b6b8bfa0d5068febd1 (diff)
downloadpyramid-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.py8
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):