diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-05 02:59:04 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-05 02:59:04 +0000 |
| commit | 93a4f5df2f74e4cbefc70733f2c0258859207106 (patch) | |
| tree | 437a2e991d29dc555e6727ef753c5b8059859c40 /repoze/bfg/interfaces.py | |
| parent | 79957510964157dae99201b1b6a14ef209bc50f7 (diff) | |
| download | pyramid-93a4f5df2f74e4cbefc70733f2c0258859207106.tar.gz pyramid-93a4f5df2f74e4cbefc70733f2c0258859207106.tar.bz2 pyramid-93a4f5df2f74e4cbefc70733f2c0258859207106.zip | |
Add a plug point for a security policy.
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 803cf237a..b0b769b02 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -11,6 +11,11 @@ class IRootPolicy(Interface): class ITraversalPolicy(Interface): def __call__(environ, root): """ Return a tuple in the form (context, name, subpath) """ + +class ISecurityPolicy(Interface): + def __call__(environ, context, name): + """ Return a WSGI app on unauthorized or None to signify that + the request is allowed to continue """ class ITraverser(Interface): def __init__(context): |
