Author: chabotc
Date: Tue Mar 17 10:58:56 2009
New Revision: 755186

URL: http://svn.apache.org/viewvc?rev=755186&view=rev
Log:
Revision 754879 added container id into security token. This patch fixed

Modified:
    incubator/shindig/trunk/php/config/container.php
    incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php

Modified: incubator/shindig/trunk/php/config/container.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/config/container.php?rev=755186&r1=755185&r2=755186&view=diff
==============================================================================
--- incubator/shindig/trunk/php/config/container.php (original)
+++ incubator/shindig/trunk/php/config/container.php Tue Mar 17 10:58:56 2009
@@ -151,5 +151,8 @@
   'curl_connection_timeout' => '10',
 
   // If your development server is behind a proxy, enter the proxy details 
here in 'proxy.host.com:port' format.
-  'proxy' => ''
+  'proxy' => '',
+  
+  // Container id, used for security token
+  'container_id' => 'default'
 );

Modified: incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php?rev=755186&r1=755185&r2=755186&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php (original)
+++ incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php Tue Mar 17 
10:58:56 2009
@@ -104,7 +104,7 @@
         
         //FIXME change this to a new AnonymousToken when reworking auth token
         $gadgetSigner = Config::get('security_token');
-        return new $gadgetSigner(null, 0, 0, 0, 0, '', '', 0);
+        return new $gadgetSigner(null, 0, 0, 0, 0, '', '', 0, 
Config::get('container_id'));
       } else {
         return null;
       }


Reply via email to