Package openid :: Package test :: Module test_consumer :: Class CheckNonceVerifyTest
[hide private]
[frames] | no frames]

Class CheckNonceVerifyTest

source code

unittest.TestCase --+    
                    |    
       object --+   |    
                |   |    
support.CatchLogs --+    
                    |    
            TestIdRes --+
                        |
           object --+   |
                    |   |
    support.CatchLogs --+
                        |
                       CheckNonceVerifyTest

Instance Methods [hide private]
 
setUp(self) source code
 
tearDown(self) source code
 
test_openid1Success(self)
use consumer-generated nonce
source code
 
test_openid1Missing(self)
use consumer-generated nonce
source code
 
test_consumerNonceOpenID2(self)
OpenID 2 does not use consumer-generated nonce
source code
 
test_serverNonce(self)
use server-generated nonce
source code
 
test_serverNonceOpenID1(self)
OpenID 1 does not use server-generated nonce
source code
 
test_badNonce(self)
remove the nonce from the store
source code
 
test_successWithNoStore(self)
When there is no store, checking the nonce succeeds
source code
 
test_tamperedNonce(self)
Malformed nonce
source code
 
test_missingNonce(self)
no nonce parameter on the return_to
source code

Inherited from TestIdRes: disableDiscoveryVerification, disableReturnToChecking

Inherited from support.CatchLogs: failUnlessLogEmpty, failUnlessLogMatches, gotLogMessage

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from TestIdRes: consumer_class

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 
Overrides: support.CatchLogs.setUp

tearDown(self)

source code 
Overrides: support.CatchLogs.tearDown

test_badNonce(self)

source code 

remove the nonce from the store

From "Checking the Nonce":

   When the Relying Party checks the signature on an assertion, the

   Relying Party SHOULD ensure that an assertion has not yet
   been accepted with the same value for "openid.response_nonce"
   from the same OP Endpoint URL.