diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-25 19:27:59 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-25 19:27:59 +0000 |
commit | a462646c2bc7e5ef2c114040e16f0cf86423100c (patch) | |
tree | 1bbd6cbf08769bc04f678c14be5a4a0b0eb234da /Auth/OpenID | |
parent | 531e1ff43648a3bef61e0c9436005141c75a0a6a (diff) | |
download | php-openid-a462646c2bc7e5ef2c114040e16f0cf86423100c.zip php-openid-a462646c2bc7e5ef2c114040e16f0cf86423100c.tar.gz php-openid-a462646c2bc7e5ef2c114040e16f0cf86423100c.tar.bz2 |
[project @ Fixes and test for dumb mode server]
Diffstat (limited to 'Auth/OpenID')
-rw-r--r-- | Auth/OpenID/Server.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Auth/OpenID/Server.php b/Auth/OpenID/Server.php index 39950c8..82e15d7 100644 --- a/Auth/OpenID/Server.php +++ b/Auth/OpenID/Server.php @@ -178,7 +178,7 @@ class Auth_OpenID_Server { ); $assoc = null; - $assoc_handle = $args['openid.assoc_handle']; + $assoc_handle = @$auth_info->args['openid.assoc_handle']; if (isset($assoc_handle)) { $key = $this->_normal_key; $assoc = $this->store->getAssociation($key, $assoc_handle); @@ -199,7 +199,8 @@ class Auth_OpenID_Server { } $reply['openid.assoc_handle'] = $assoc->handle; - $assoc->addSignature($this->_signed_fields, &$reply); + $signed_fields = array('mode', 'identity', 'return_to'); + $assoc->addSignature($signed_fields, &$reply); $redir_url = Auth_OpenID_appendArgs($return_to, $reply); return array(Auth_OpenID_REDIRECT, $redir_url); } @@ -278,7 +279,7 @@ class Auth_OpenID_Server { $to_verify = $args; $to_verify['openid.mode'] = 'id_res'; - $fields = explode(',', trim(signed)); + $fields = explode(',', trim($signed)); $tv_sig = $assoc->signDict($signed_fields, $to_verify); if ($tv_sig == $sig) { |