diff options
author | tailor <chowells@janrain.com> | 2008-07-11 21:52:08 +0000 |
---|---|---|
committer | tailor <chowells@janrain.com> | 2008-07-11 21:52:08 +0000 |
commit | 98521d0748c5e7a2675720185f411485c77cb8a4 (patch) | |
tree | aea3c3268d89522278637e00842d10ca3cf22987 /Auth/OpenID | |
parent | 422ac5440ce282a1dbe020764ee7d673d0845b80 (diff) | |
download | php-openid-98521d0748c5e7a2675720185f411485c77cb8a4.zip php-openid-98521d0748c5e7a2675720185f411485c77cb8a4.tar.gz php-openid-98521d0748c5e7a2675720185f411485c77cb8a4.tar.bz2 |
[project @ If we're generating user_setup_urls, let's at least do it correctly]
Diffstat (limited to 'Auth/OpenID')
-rw-r--r-- | Auth/OpenID/Server.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Auth/OpenID/Server.php b/Auth/OpenID/Server.php index e746bcc..f1db4d8 100644 --- a/Auth/OpenID/Server.php +++ b/Auth/OpenID/Server.php @@ -765,12 +765,17 @@ class Auth_OpenID_CheckIDRequest extends Auth_OpenID_Request { function Auth_OpenID_CheckIDRequest($identity, $return_to, $trust_root = null, $immediate = false, - $assoc_handle = null, $server = null) + $assoc_handle = null, $server = null, + $claimed_id = null) { $this->namespace = Auth_OpenID_OPENID2_NS; $this->assoc_handle = $assoc_handle; $this->identity = $identity; - $this->claimed_id = $identity; + if ($claimed_id === null) { + $this->claimed_id = $identity; + } else { + $this->claimed_id = $claimed_id; + } $this->return_to = $return_to; $this->trust_root = $trust_root; $this->server =& $server; @@ -1098,7 +1103,8 @@ class Auth_OpenID_CheckIDRequest extends Auth_OpenID_Request { $this->trust_root, false, $this->assoc_handle, - $this->server); + $this->server, + $this->claimed_id); $setup_request->message = $this->message; $setup_url = $setup_request->encodeToURL($server_url); |