summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-03-27 21:42:59 +0000
committertailor <cygnus@janrain.com>2007-03-27 21:42:59 +0000
commit59dfbdbad2b5b951208d9aa42a63c1b13f607726 (patch)
tree0a16f0facd43477dc1be4100a50d51fe051ba92b /Auth
parent28b302e3c2313be97873ca6446d7a83655029bd6 (diff)
downloadphp-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.php5
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;