mediawiki/oauthclient-php
PHP OAuth client to use with Wikipedia and other MediaWiki-based wikis running the OAuth extension.
|
A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec. More...
Public Member Functions | |
getName () | |
Needs to return the name of the Signature Method (ie HMAC-SHA1) | |
buildSignature (Request $request, Consumer $consumer, Token $token=null) | |
Build up the signature NOTE: The output of this function MUST NOT be urlencoded. | |
checkSignature (Request $request, Consumer $consumer, $token, $signature) | |
Verifies that a given signature is correct. | |
A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec.
|
abstract |
Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
the encoding is handled in Request when the final request is serialized
Request | $request | |
Consumer | $consumer | |
Token | null | $token |
Reimplemented in MediaWiki\OAuthClient\SignatureMethod\HmacSha1, MediaWiki\OAuthClient\SignatureMethod\Plaintext, and MediaWiki\OAuthClient\SignatureMethod\RsaSha1.
MediaWiki\OAuthClient\SignatureMethod::checkSignature | ( | Request | $request, |
Consumer | $consumer, | ||
$token, | |||
$signature | |||
) |
Verifies that a given signature is correct.
Request | $request | |
Consumer | $consumer | |
Token | null | $token | |
string | $signature |
Reimplemented in MediaWiki\OAuthClient\SignatureMethod\RsaSha1.
|
abstract |
Needs to return the name of the Signature Method (ie HMAC-SHA1)
Reimplemented in MediaWiki\OAuthClient\SignatureMethod\HmacSha1, MediaWiki\OAuthClient\SignatureMethod\Plaintext, and MediaWiki\OAuthClient\SignatureMethod\RsaSha1.