diff options
author | stutiredboy <stutiredboy@users.noreply.github.com> | 2013-12-17 19:11:39 +0800 |
---|---|---|
committer | stutiredboy <stutiredboy@users.noreply.github.com> | 2013-12-17 19:11:39 +0800 |
commit | 7e3e8e787e5bafaea5ad50fa22e9bac2505a7acc (patch) | |
tree | ee6a184aa686f848dfac394062b30e2163beacbe /Auth | |
parent | ee669c6a9d4d95b58ecd9b6945627276807694fb (diff) | |
download | php-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.php | 3 |
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(); |