mediawiki/oauthclient-php
PHP OAuth client to use with Wikipedia and other MediaWiki-based wikis running the OAuth extension.
|
The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS. More...
Public Member Functions | |
getName () | |
buildSignature (Request $request, Consumer $consumer, Token $token=null) | |
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty. | |
Public Member Functions inherited from MediaWiki\OAuthClient\SignatureMethod | |
checkSignature (Request $request, Consumer $consumer, $token, $signature) | |
Verifies that a given signature is correct. | |
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.
MediaWiki\OAuthClient\SignatureMethod\Plaintext::buildSignature | ( | Request | $request, |
Consumer | $consumer, | ||
Token | $token = null |
||
) |
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty.
The result MUST be encoded again.
Please note that the second encoding MUST NOT happen in the SignatureMethod, as Request handles this!
Request | $request | |
Consumer | $consumer | |
Token | null | $token |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.
MediaWiki\OAuthClient\SignatureMethod\Plaintext::getName | ( | ) |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.