diff options
author | tailor <cygnus@janrain.com> | 2007-03-27 21:42:59 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-03-27 21:42:59 +0000 |
commit | 59dfbdbad2b5b951208d9aa42a63c1b13f607726 (patch) | |
tree | 0a16f0facd43477dc1be4100a50d51fe051ba92b /Auth | |
parent | 28b302e3c2313be97873ca6446d7a83655029bd6 (diff) | |
download | php-openid-59dfbdbad2b5b951208d9aa42a63c1b13f607726.zip php-openid-59dfbdbad2b5b951208d9aa42a63c1b13f607726.tar.gz php-openid-59dfbdbad2b5b951208d9aa42a63c1b13f607726.tar.bz2 |
[project @ Return null from _negotiateAssociation]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Consumer.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php index bb515dd..1734685 100644 --- a/Auth/OpenID/Consumer.php +++ b/Auth/OpenID/Consumer.php @@ -1239,6 +1239,7 @@ class Auth_OpenID_GenericConsumer { ($assoc->getExpiresIn() <= 0)) { $assoc = $this->_negotiateAssociation($endpoint); + if ($assoc !== null) { $this->store->storeAssociation($endpoint->server_url, $assoc); @@ -1256,6 +1257,10 @@ class Auth_OpenID_GenericConsumer { $assoc = $this->_requestAssociation( $endpoint, $assoc_type, $session_type); + if (Auth_OpenID::isFailure($assoc)) { + return null; + } + if (is_a($assoc, 'Auth_OpenID_ServerErrorContainer')) { $why = $assoc; |