Skip to content
Browse files

- Add ``wild_domain`` argument to authtkauthpolicy directive.

- Depend on ``pyramid>=1.0b1`` (``wild_domain`` argument to authtktauthpolicy
  directive).
  • Loading branch information...
1 parent 636193f commit 7f598e364ef10b188d849b195450e42c75a603f4 @mcdonc mcdonc committed Feb 22, 2011
Showing with 20 additions and 5 deletions.
  1. +5 −0 CHANGES.txt
  2. +2 −2 docs/narr.rst
  3. +6 −0 docs/zcml/authtktauthenticationpolicy.rst
  4. +5 −2 pyramid_zcml/__init__.py
  5. +2 −1 setup.py
View
5 CHANGES.txt
@@ -1,6 +1,11 @@
Next release
------------
+- Add ``wild_domain`` argument to authtkauthpolicy directive.
+
+- Depend on ``pyramid>=1.0b1`` (``wild_domain`` argument to authtktauthpolicy
+ directive).
+
- Make tests pass on Pyramid 1.0; squash testing deprecation warnings.
0.1
View
4 docs/narr.rst
@@ -473,8 +473,8 @@ completely equivalent:
We've now configured a Pyramid helloworld application
declaratively. More information about this mode of configuration is
-available in :ref:`declarative_configuration` and within
-:ref:`zcml_reference`.
+available in :ref:`declarative_configuration`.
+
.. index::
single: ZCML granularity
View
6 docs/zcml/authtktauthenticationpolicy.rst
@@ -69,6 +69,11 @@ Attributes
(on all major browser platforms) that auth_tkt cookies will last
for the lifetime of the user's browser session.
+``wild_domain``
+ A boolean value. If it's set to "true", a cookie with a "wild" domain
+ value will only be sent back by the browser during ``remember``.
+ It defaults to "true".
+
Example
~~~~~~~
@@ -84,6 +89,7 @@ Example
timeout="86400"
reissue_time="600"
max_age="31536000"
+ wild_domain="true"
/>
Alternatives
View
7 pyramid_zcml/__init__.py
@@ -403,6 +403,7 @@ class IAuthTktAuthenticationPolicyDirective(Interface):
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)
+ wild_domain = Bool(title=u"wild_domain", required=False, default=True)
def authtktauthenticationpolicy(_context,
secret,
@@ -414,7 +415,8 @@ def authtktauthenticationpolicy(_context,
reissue_time=None,
max_age=None,
http_only=False,
- path='/'):
+ path='/',
+ wild_domain=True):
try:
policy = AuthTktAuthenticationPolicy(secret,
callback=callback,
@@ -425,7 +427,8 @@ def authtktauthenticationpolicy(_context,
reissue_time = reissue_time,
max_age=max_age,
http_only=http_only,
- path=path)
+ path=path,
+ wild_domain=wild_domain)
except ValueError, why:
raise ConfigurationError(str(why))
# authentication policies must be registered eagerly so they can
View
3 setup.py
@@ -25,7 +25,8 @@
README = CHANGES = ''
install_requires=[
- 'pyramid>=1.0a10', 'PasteScript',
+ 'pyramid>=1.0b1', # autktauthenticationpolicy wild_domain
+ 'PasteScript',
]
if platform.system() == 'Java':

0 comments on commit 7f598e3

Please sign in to comment.
Something went wrong with that request. Please try again.