incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493411 - in /incubator/heraldry/libraries/python/openid/trunk/openid: server/server.py test/test_server.py
Date Sat, 06 Jan 2007 05:28:48 GMT
Author: keturn
Date: Fri Jan  5 21:28:47 2007
New Revision: 493411

URL: http://svn.apache.org/viewvc?view=rev&rev=493411
Log:
[python-to-heraldry @ server.server: s/openid.nonce/openid.response_nonce/ [#1564]]

Original author: Kevin Turner <kevin@janrain.com>
Date: 2006-12-16 00:16:30+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/openid/server/server.py
    incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/server/server.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/server/server.py?view=diff&rev=493411&r1=493410&r2=493411
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/server/server.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/server/server.py Fri Jan  5 21:28:47
2007
@@ -146,7 +146,7 @@
     """
     mode = "check_authentication"
 
-    required_fields = ["identity", "return_to", "nonce"]
+    required_fields = ["identity", "return_to", "response_nonce"]
 
     def __init__(self, assoc_handle, signed, invalidate_handle=None):
         """Construct me.
@@ -688,7 +688,7 @@
             response.fields.updateArgs(OPENID_NS, {
                 'mode': mode,
                 'return_to': self.return_to,
-                'nonce': mkNonce(),
+                'response_nonce': mkNonce(),
                 })
 
             if response_identity is not None:

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py?view=diff&rev=493411&r1=493410&r2=493411
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py Fri Jan  5
21:28:47 2007
@@ -206,10 +206,10 @@
             'openid.mode': 'check_authentication',
             'openid.assoc_handle': '{dumb}{handle}',
             'openid.sig': 'sigblob',
-            'openid.signed': 'identity,return_to,nonce,mode',
+            'openid.signed': 'identity,return_to,response_nonce,mode',
             'openid.identity': 'signedval1',
             'openid.return_to': 'signedval2',
-            'openid.nonce': 'signedval3',
+            'openid.response_nonce': 'signedval3',
             'openid.baz': 'unsigned',
             }
         r = self.decode(args)
@@ -236,10 +236,10 @@
             'openid.assoc_handle': '{dumb}{handle}',
             'openid.invalidate_handle': '[[SMART_handle]]',
             'openid.sig': 'sigblob',
-            'openid.signed': 'identity,return_to,nonce,mode',
+            'openid.signed': 'identity,return_to,response_nonce,mode',
             'openid.identity': 'signedval1',
             'openid.return_to': 'signedval2',
-            'openid.nonce': 'signedval3',
+            'openid.response_nonce': 'signedval3',
             'openid.baz': 'unsigned',
             }
         r = self.decode(args)
@@ -576,7 +576,7 @@
             actual = answer.fields.getArg(OPENID_NS, k)
             self.failUnlessEqual(actual, expected, "%s: expected %s, got %s" % (k, expected,
actual))
 
-        self.failUnless(answer.fields.hasKey(OPENID_NS, 'nonce'))
+        self.failUnless(answer.fields.hasKey(OPENID_NS, 'response_nonce'))
         self.failUnless(answer.fields.getOpenIDNamespace() == OPENID2_NS)
 
         # One for nonce, one for ns



Mime
View raw message