You are here

function OAuthRequest::signatureBaseString in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.3 lib/oauth-php/library/OAuthRequest.php \OAuthRequest::signatureBaseString()

* Return the signature base string. * Note that we can't use rawurlencode due to specified use of RFC3986. * *

Return value

string

3 calls to OAuthRequest::signatureBaseString()
OAuthRequest::calculateSignature in lib/oauth-php/library/OAuthRequest.php
* Calculate the signature of the request, using the method in oauth_signature_method. * The signature is returned encoded in the form as used in the url. So the base64 and * urlencoding has been done. * *
OAuthRequestVerifier::verifyExtended in lib/oauth-php/library/OAuthRequestVerifier.php
* Verify the request * *
OAuthRequestVerifier::verifySignature in lib/oauth-php/library/OAuthRequestVerifier.php
* Verify the signature of the request, using the method in oauth_signature_method. * The signature is returned encoded in the form as used in the url. So the base64 and * urlencoding has been done. * *

File

lib/oauth-php/library/OAuthRequest.php, line 156

Class

OAuthRequest
Object to parse an incoming OAuth request or prepare an outgoing OAuth request

Code

function signatureBaseString() {
  $sig = array();
  $sig[] = $this->method;
  $sig[] = $this
    ->getRequestUrl();
  $sig[] = $this
    ->getNormalizedParams();
  return implode('&', array_map(array(
    $this,
    'urlencode',
  ), $sig));
}