You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/08/01 17:30:55 UTC

svn commit: r799887 - /incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php

Author: chabotc
Date: Sat Aug  1 15:30:54 2009
New Revision: 799887

URL: http://svn.apache.org/viewvc?rev=799887&view=rev
Log:
Solves SHINDIG-857 (and related) SHINDIG-609 by including both the old and new xoauth public key param names

Modified:
    incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php

Modified: incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php?rev=799887&r1=799886&r2=799887&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php Sat Aug  1 15:30:54 2009
@@ -33,7 +33,8 @@
   protected static $OPENSOCIAL_VIEWERID = "opensocial_viewer_id";
   protected static $OPENSOCIAL_APPID = "opensocial_app_id";
   protected static $OPENSOCIAL_APPURL = "opensocial_app_url";
-  protected static $XOAUTH_PUBLIC_KEY = "xoauth_signature_publickey";
+  protected static $XOAUTH_PUBLIC_KEY_OLD = "xoauth_signature_publickey";
+  protected static $XOAUTH_PUBLIC_KEY_NEW = "xoauth_public_key";
   protected static $ALLOWED_PARAM_NAME = '^[-_[:alnum:]]+$';
 
   /**
@@ -229,7 +230,8 @@
       $msgParams[OAuth::$OAUTH_CONSUMER_KEY] = $domain;
     }
     if ($this->keyName != null) {
-      $msgParams[SigningFetcher::$XOAUTH_PUBLIC_KEY] = $this->keyName;
+      $msgParams[SigningFetcher::$XOAUTH_PUBLIC_KEY_OLD] = $this->keyName;
+      $msgParams[SigningFetcher::$XOAUTH_PUBLIC_KEY_NEW] = $this->keyName;
     }
     $nonce = OAuthRequest::generate_nonce();
     $msgParams[OAuth::$OAUTH_NONCE] = $nonce;