Skip to content

Commit db75ff8

Browse files
author
tailor
committed
[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.
1 parent 7b7233b commit db75ff8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Auth/OpenID/Message.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,11 @@ function delArg($namespace, $key)
887887

888888
function getAliasedArg($aliased_key, $default = null)
889889
{
890+
if ($aliased_key == 'ns') {
891+
// Return the namespace URI for the OpenID namespace
892+
return $this->getOpenIDNamespace();
893+
}
894+
890895
$parts = explode('.', $aliased_key, 2);
891896

892897
if (count($parts) != 2) {

0 commit comments

Comments
 (0)