title: Invalid Signature in Auth 1.0a implementing in PHP
body: <pre><code>public function garminAction(){
      $url  =   'http://connectapitest.garmin.com/oauth-service-1.0/oauth/request_token';
      $oauth_consumer_key =   'XXXXXXXXX';
      $consumerSecret = 'XXXXXXXXX';
      $oauth_signature_method =   'HMAC-SHA1';
      $oauth_timestamp    =   time();
      $oauth_nonce    =   md5(mt_rand());
      $oauth_version  =   "1.0";
      $sig_string = urlencode($consumerSecret) . '&amp;' . urlencode($oauth_consumer_key);
      $base_string1 =
      "POST&amp;" .urlencode($url) . "&amp;" .
      urlencode(
         "oauth_consumer_key=". $oauth_consumer_key
        . "&amp;oauth_nonce=" . $oauth_nonce
        . "&amp;oauth_signature_method=" . $oauth_signature_method
        . "&amp;oauth_timestamp=" .$oauth_timestamp
        . "&amp;oauth_version=" . $oauth_version
              );
  
  
      $oauthSig = base64_encode(hash_hmac("sha1", $base_string1, $sig_string, true));
      echo $oauthSig;
      $base_string =
  
      urlencode(
          "oauth_consumer_key=" . $oauth_consumer_key
          . "&amp;oauth_signature_method=" . $oauth_signature_method
          . "&amp;oauth_signature=" . $oauthSig
          . "&amp;oauth_timestamp=" . $oauth_timestamp
          ."&amp;oauth_version=" . $oauth_version
          . "&amp;oauth_nonce=" . $oauth_nonce
  
      );
  
       $auth_header = "OAuth "
      . 'oauth_signature="' . rawurlencode($oauthSig) . '", '
      . 'oauth_version="' . rawurlencode($oauth_version) . '", '
      . 'oauth_nonce="' . rawurlencode($oauth_nonce) . '", '
      . 'oauth_signature_method="' . rawurlencode($oauth_signature_method) . '", '
      . 'oauth_consumer_key="' . rawurlencode($oauth_consumer_key) . '", '
      . 'oauth_timestamp="' . rawurlencode($oauth_timestamp) .'"';
      $ch = curl_init($url);
  
       curl_setopt($ch, CURLOPT_HTTPHEADER, [
           'Authorization: ' . $auth_header,
           'Content-Type: text/html'
       ]);
      curl_setopt($ch, CURLOPT_URL,$url); 
      curl_setopt($ch, CURLOPT_POSTFIELDS, $base_string);
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      $response = curl_exec($ch);
      echo $error = curl_errno ($ch);
      $error = curl_error($ch);
      echo $response;
      curl_close($ch);
      exit;
  
  }
  </code></pre>
  
  <p>Its reponse is: 
  HTTP Status 401 - Invalid signature for signature method HMAC-SHA1</p>
  
  <p>Can you please help where the issue is in generating Signatures?</p>