You are here

function LingotekOAuthRequest::signatureBaseString in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.4 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::signatureBaseString()
  2. 7.5 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::signatureBaseString()
  3. 7.6 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::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 LingotekOAuthRequest::signatureBaseString()
LingotekOAuthRequest::calculateSignature in lib/oauth-php/library/LingotekOAuthRequest.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. * *
LingotekOAuthRequestVerifier::verifyExtended in lib/oauth-php/library/LingotekOAuthRequestVerifier.php
* Verify the request * *
LingotekOAuthRequestVerifier::verifySignature in lib/oauth-php/library/LingotekOAuthRequestVerifier.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/LingotekOAuthRequest.php, line 125

Class

LingotekOAuthRequest
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));
}