You are here

public function LingotekOAuthRequestVerifier::verify in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::verify()
  2. 7.4 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::verify()
  3. 7.5 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::verify()

* Verify the request * *

Parameters

string token_type the kind of token needed, defaults to 'access' (false, 'access', 'request'): * @exception OAuthException2 thrown when the request did not verify * @return int user_id associated with token (false when no user associated)

3 calls to LingotekOAuthRequestVerifier::verify()
LingotekOAuthRequestVerifier::verifyIfSigned in lib/oauth-php/library/LingotekOAuthRequestVerifier.php
* Verify the request if it seemed to be signed. * *
LingotekOAuthServer::accessToken in lib/oauth-php/library/LingotekOAuthServer.php
* Exchange a request token for an access token. * The exchange is only succesful iff the request token has been authorized. * * Never returns, calls exit() when token is exchanged or when error is returned.
LingotekOAuthServer::requestToken in lib/oauth-php/library/LingotekOAuthServer.php
* Handle the request_token request. * Returns the new request token and request token secret. * * TODO: add correct result code to exception * *

File

lib/oauth-php/library/LingotekOAuthRequestVerifier.php, line 131

Class

LingotekOAuthRequestVerifier

Code

public function verify($token_type = 'access') {
  $retval = $this
    ->verifyExtended($token_type);
  return $retval['user_id'];
}