public static function OAuthRequestVerifier::requestIsSigned in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lib/oauth-php/library/OAuthRequestVerifier.php \OAuthRequestVerifier::requestIsSigned()
* See if the current request is signed with OAuth * *
Return value
boolean
File
- lib/
oauth-php/ library/ OAuthRequestVerifier.php, line 77
Class
Code
public static function requestIsSigned() {
if (isset($_REQUEST['oauth_signature'])) {
$signed = true;
}
else {
$hs = OAuthRequestLogger::getAllHeaders();
if (isset($hs['Authorization']) && strpos($hs['Authorization'], 'oauth_signature') !== false) {
$signed = true;
}
else {
$signed = false;
}
}
return $signed;
}