OAuthSignatureMethod_PLAINTEXT.php in jQuery social stream 8
File
src/Twitter/OAuthSignatureMethod_PLAINTEXT.php
View source
<?php
namespace Drupal\jquery_social_stream\Twitter;
class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
public function get_name() {
return "PLAINTEXT";
}
public function build_signature($request, $consumer, $token) {
$key_parts = array(
$consumer->secret,
$token ? $token->secret : "",
);
$key_parts = OAuthUtil::urlencode_rfc3986($key_parts);
$key = implode('&', $key_parts);
$request->base_string = $key;
return $key;
}
}
Classes
Name |
Description |
OAuthSignatureMethod_PLAINTEXT |
The PLAINTEXT method does not provide any security protection and SHOULD only be used
over a secure channel such as HTTPS. It does not use the Signature Base String. |