diff options
author | tailor <cygnus@janrain.com> | 2007-10-02 22:26:54 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-10-02 22:26:54 +0000 |
commit | a8ceefe9ca408ccd3bf371260afe5d0a32e3b164 (patch) | |
tree | 7389098237c31e5766a95b3a35a979436d70a67c /Tests | |
parent | 9b28acd2c031fbaee1a925b1f11652b13ef2288c (diff) | |
download | php-openid-a8ceefe9ca408ccd3bf371260afe5d0a32e3b164.zip php-openid-a8ceefe9ca408ccd3bf371260afe5d0a32e3b164.tar.gz php-openid-a8ceefe9ca408ccd3bf371260afe5d0a32e3b164.tar.bz2 |
[project @ Change nonce extraction from OpenID response]
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Auth/OpenID/Consumer.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php index 1bfecb2..70312b6 100644 --- a/Tests/Auth/OpenID/Consumer.php +++ b/Tests/Auth/OpenID/Consumer.php @@ -615,10 +615,12 @@ class Tests_Auth_OpenID_Consumer_CheckNonceTest extends _TestIdRes { function test_openid1Success() { // use consumer-generated nonce + $nonce_value = Auth_OpenID_mkNonce(); $this->return_to = sprintf('http://rt.unittest/?nonce=%s', - Auth_OpenID_mkNonce()); + $nonce_value); $this->response = Auth_OpenID_Message::fromOpenIDArgs( array('return_to' => $this->return_to)); + $this->response->setArg(Auth_OpenID_BARE_NS, 'nonce', $nonce_value); $result = $this->consumer->_idResCheckNonce($this->response, $this->endpoint); $this->assertFalse(Auth_OpenID::isFailure($result)); |