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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py
index 4384924a7..0ce38997d 100644
--- a/repoze/bfg/zcml.py
+++ b/repoze/bfg/zcml.py
@@ -248,7 +248,8 @@ class IRemoteUserAuthenticationPolicyDirective(Interface):
default=u'REMOTE_USER')
callback = GlobalObject(title=u'callback', required=False)
-def remoteuserauthenticationpolicy(_context, environ_key, callback=None):
+def remoteuserauthenticationpolicy(_context, environ_key='REMOTE_USER',
+ callback=None):
policy = RemoteUserAuthenticationPolicy(environ_key=environ_key,
callback=callback)
_context.action(