public function OAuthSignatureMethod::check_signature in jQuery social stream 8.2
Same name and namespace in other branches
- 8 src/Twitter/OAuthSignatureMethod.php \Drupal\jquery_social_stream\Twitter\OAuthSignatureMethod::check_signature()
Verifies that a given signature is correct
Parameters
OAuthRequest $request:
OAuthConsumer $consumer:
OAuthToken $token:
string $signature:
Return value
bool
1 method overrides OAuthSignatureMethod::check_signature()
- OAuthSignatureMethod_RSA_SHA1::check_signature in src/
Twitter/ OAuthSignatureMethod_RSA_SHA1.php - Verifies that a given signature is correct
File
- src/
Twitter/ OAuthSignatureMethod.php, line 36
Class
- OAuthSignatureMethod
- A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec
Namespace
Drupal\jquery_social_stream\TwitterCode
public function check_signature($request, $consumer, $token, $signature) {
$built = $this
->build_signature($request, $consumer, $token);
return $built == $signature;
}