summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authorstutiredboy <stutiredboy@users.noreply.github.com>2013-12-17 19:11:39 +0800
committerstutiredboy <stutiredboy@users.noreply.github.com>2013-12-17 19:11:39 +0800
commit7e3e8e787e5bafaea5ad50fa22e9bac2505a7acc (patch)
treeee6a184aa686f848dfac394062b30e2163beacbe /Auth
parentee669c6a9d4d95b58ecd9b6945627276807694fb (diff)
downloadphp-openid-7e3e8e787e5bafaea5ad50fa22e9bac2505a7acc.zip
php-openid-7e3e8e787e5bafaea5ad50fa22e9bac2505a7acc.tar.gz
php-openid-7e3e8e787e5bafaea5ad50fa22e9bac2505a7acc.tar.bz2
Update Consumer.php
``` $this->_use_assocs = (is_null($this->store) ? false : true); ``` always return true, even the store is Auth_OpenID_DumbStore, and do an association with the OpenID Server. but OpenID Server will reject the check_authentication, if RP have do an association.
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Consumer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index d562e33..59e75f9 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -616,6 +616,9 @@ class Auth_OpenID_GenericConsumer {
$this->store = $store;
$this->negotiator = Auth_OpenID_getDefaultNegotiator();
$this->_use_assocs = (is_null($this->store) ? false : true);
+ if (get_class($this->store) == "Auth_OpenID_DumbStore") {
+ $this->_use_assocs = false;
+ }
$this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();