title: Issues with Disqus Single-sign on, no connection made
body: <p>i am trying to implement disqus single sign on, but i cannot seem to make a connection, i set up a test page:</p>
  
  <pre><code>&lt;?php
  define('DISQUS_SECRET_KEY', 'mykey');
  define('DISQUS_PUBLIC_KEY', 'myotherkey');
  
  $data = array(
      "username" =&gt; "Disqus Test",
      "url" =&gt; "http://disqus.com",
      "id" =&gt; "999",
      "avatar" =&gt; "http://dl.dropbox.com/u/31679327/Screenshots/30v.png",
      "email" =&gt; "disqus-test@disqus.com"
  );
  
  function dsq_hmacsha1($data, $key) {
      $blocksize=64;
      $hashfunc='sha1';
      if (strlen($key)&gt;$blocksize)
      $key=pack('H*', $hashfunc($key));
      $key=str_pad($key,$blocksize,chr(0x00));
      $ipad=str_repeat(chr(0x36),$blocksize);
      $opad=str_repeat(chr(0x5c),$blocksize);
      $hmac = pack('H*',$hashfunc(
      ($key^$opad).pack('H*',$hashfunc(
      ($key^$ipad).$data)
      )
      )
      );
  return bin2hex($hmac);
  }
  
  $message = base64_encode(json_encode($data));
  $timestamp = time();
  $hmac = dsq_hmacsha1($message . ' ' . $timestamp, DISQUS_SECRET_KEY);
  ?&gt;
  
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test Site&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="disqus_thread"&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  var disqus_config = function() {
  this.page.remote_auth_s3 = "&lt;?php echo "$message $hmac $timestamp"; ?&gt;";
  this.page.api_key = "&lt;?php echo DISQUS_PUBLIC_KEY; ?&gt;";
  }
  
  /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  var disqus_shortname = 'funkydic'; // required: replace example with your forum shortname
  
  /* * * DON'T EDIT BELOW THIS LINE * * */
  (function() {
  var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
  &lt;/script&gt;
  &lt;noscript&gt;Please enable JavaScript to view the &lt;a href="http://disqus.com/?ref_noscript"&gt;comments powered by Disqus.&lt;/a&gt;&lt;/noscript&gt;
  &lt;a href="http://disqus.com" class="dsq-brlink"&gt;blog comments powered by &lt;span class="logo-disqus"&gt;Disqus&lt;/span&gt;&lt;/a&gt;
  
  &lt;?php echo "$message $hmac $timestamp"; ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I decode the payload, and it looks as it should, the issue seems to lie in the connection, even tho everything looks like its been setup as it should.</p>
  
  <p>Any help is apriciated</p>