summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <sam.alexander@vidoop.com>2008-11-07 20:24:12 +0000
committertailor <sam.alexander@vidoop.com>2008-11-07 20:24:12 +0000
commitdb75ff88b2051f3cd809d1aa4de1f7ade1df9495 (patch)
tree44437cb8693fcb37a4412c1635e3deea64287d7e /Auth
parent7b7233bf068c59297467ee04aab6f73af0172fd1 (diff)
downloadphp-openid-db75ff88b2051f3cd809d1aa4de1f7ade1df9495.zip
php-openid-db75ff88b2051f3cd809d1aa4de1f7ade1df9495.tar.gz
php-openid-db75ff88b2051f3cd809d1aa4de1f7ade1df9495.tar.bz2
[project @ getAliasedArg() returns OpenID namespace when $aliased_key is 'ns']
This fixes an rather cryptic error when using stateless mode via the DumbStore. The 'ns' key can not be found in the alias/namespace mapping (its stored as the "Null Namespace"), it must be returned explicitly. The inability to find the key in the mapping results in a "Server Denied check_authentication" error, but the error is caused before any callback to the server is made. This also brings the PHP lib more in line with the ruby and python libs.
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Message.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Auth/OpenID/Message.php b/Auth/OpenID/Message.php
index fd23e67..3c6af5f 100644
--- a/Auth/OpenID/Message.php
+++ b/Auth/OpenID/Message.php
@@ -887,6 +887,11 @@ class Auth_OpenID_Message {
function getAliasedArg($aliased_key, $default = null)
{
+ if ($aliased_key == 'ns') {
+ // Return the namespace URI for the OpenID namespace
+ return $this->getOpenIDNamespace();
+ }
+
$parts = explode('.', $aliased_key, 2);
if (count($parts) != 2) {