summaryrefslogtreecommitdiff
path: root/repoze/bfg/zcml.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/zcml.py')
-rw-r--r--repoze/bfg/zcml.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py
index 297a59434..fabc1a03c 100644
--- a/repoze/bfg/zcml.py
+++ b/repoze/bfg/zcml.py
@@ -445,6 +445,8 @@ class IAuthTktAuthenticationPolicyDirective(Interface):
timeout = Int(title=u"timeout", required=False, default=None)
reissue_time = Int(title=u"reissue_time", required=False, default=None)
max_age = Int(title=u"max_age", required=False, default=None)
+ path = ASCIILine(title=u"path", required=False, default='/')
+ http_only = Bool(title=u"http_only", required=False, default=False)
def authtktauthenticationpolicy(_context,
secret,
@@ -454,7 +456,9 @@ def authtktauthenticationpolicy(_context,
include_ip=False,
timeout=None,
reissue_time=None,
- max_age=None):
+ max_age=None,
+ http_only=False,
+ path='/'):
try:
policy = AuthTktAuthenticationPolicy(secret,
callback=callback,
@@ -463,7 +467,9 @@ def authtktauthenticationpolicy(_context,
include_ip = include_ip,
timeout = timeout,
reissue_time = reissue_time,
- max_age=max_age)
+ max_age=max_age,
+ http_only=http_only,
+ path=path)
except ValueError, why:
raise ConfigurationError(str(why))
# authentication policies must be registered eagerly so they can