public function OAuthRequestVerifier::verify in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lib/oauth-php/library/OAuthRequestVerifier.php \OAuthRequestVerifier::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 OAuthRequestVerifier::verify()
- OAuthRequestVerifier::verifyIfSigned in lib/
oauth-php/ library/ OAuthRequestVerifier.php - * Verify the request if it seemed to be signed. * *
- OAuthServer::accessToken in lib/
oauth-php/ library/ OAuthServer.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.
- OAuthServer::requestToken in lib/
oauth-php/ library/ OAuthServer.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/ OAuthRequestVerifier.php, line 131
Class
Code
public function verify($token_type = 'access') {
$retval = $this
->verifyExtended($token_type);
return $retval['user_id'];
}