]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Upgrade included OpenID libraries to version 2.1.2
authorEvan Prodromou <git@evanprodromou.name>
Wed, 7 Jan 2009 03:54:10 +0000 (22:54 -0500)
committerEvan Prodromou <git@evanprodromou.name>
Wed, 7 Jan 2009 03:54:10 +0000 (22:54 -0500)
extlib/Auth/OpenID.php
extlib/Auth/OpenID/Consumer.php
extlib/Auth/OpenID/Server.php

index 6a6e54f8b71eadcdb568c0da5b98f9e4a58e5d4d..6556b5b01e8bb43ef315991932b370ce30535bdf 100644 (file)
@@ -20,7 +20,7 @@
 /**
  * The library version string
  */
-define('Auth_OpenID_VERSION', '2.1.1');
+define('Auth_OpenID_VERSION', '2.1.2');
 
 /**
  * Require the fetcher code.
index 6631cbaa90297dd05018184f2cf3b4d982a995d4..a72684c6b8b76fc19d779068f224a4d55f15b17b 100644 (file)
@@ -711,7 +711,9 @@ class Auth_OpenID_GenericConsumer {
             return $this->_completeInvalid($message, $endpoint);
         }
 
-        return new Auth_OpenID_SetupNeededResponse($endpoint);
+        $user_setup_url = $message->getArg(Auth_OpenID_OPENID2_NS,
+                                           'user_setup_url');
+        return new Auth_OpenID_SetupNeededResponse($endpoint, $user_setup_url);
     }
 
     /**
index e746bcc574d71c0dc17e91f159aa0ae8732a7363..f1db4d872567ec6f311b150fde193f0a29926119 100644 (file)
@@ -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);