1 | <?php namespace nyx\auth\id\protocols\oauth1\signers; |
||
21 | class Plaintext extends oauth1\Signer |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritDoc} |
||
25 | */ |
||
26 | public function getMethod() : string |
||
27 | { |
||
28 | return oauth1\interfaces\Signer::METHOD_PLAINTEXT; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | * |
||
34 | * @see https://oauth.net/core/1.0a/#anchor22 (Spec #9.4.1 PLAINTEXT / Generating signature): |
||
35 | * "(...) the concatenated encoded values of the Consumer Secret and Token Secret (...) |
||
36 | * The result MUST be encoded again." |
||
37 | */ |
||
38 | public function sign(Request $request, array $params, auth\id\credentials\Client $client, auth\interfaces\Credentials $token = null) : string |
||
42 | } |
||
43 |