You are here

function LingotekOAuthRequest::checks in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::checks()
  2. 7.4 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::checks()
  3. 7.6 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::checks()

* Perform some sanity checks. * * @exception OAuthException2 thrown when sanity checks failed

2 calls to LingotekOAuthRequest::checks()
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::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 303

Class

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

Code

function checks() {
  if (isset($this->param['oauth_version'])) {
    $version = $this
      ->urldecode($this->param['oauth_version']);
    if ($version != '1.0') {
      throw new OAuthException2('Expected OAuth version 1.0, got "' . $this->param['oauth_version'] . '"');
    }
  }
}