mediawiki/oauthclient-php
PHP OAuth client to use with Wikipedia and other MediaWiki-based wikis running the OAuth extension.
|
The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] where the Signature Base String is the text and the key is the concatenated values (each first encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' character (ASCII code 38) even if empty. More...
Public Member Functions | |
getName () | |
buildSignature (Request $request, Consumer $consumer, ?Token $token=null) | |
Public Member Functions inherited from MediaWiki\OAuthClient\SignatureMethod | |
checkSignature (Request $request, Consumer $consumer, $token, $signature) | |
Verifies that a given signature is correct. | |
The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] where the Signature Base String is the text and the key is the concatenated values (each first encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' character (ASCII code 38) even if empty.
MediaWiki\OAuthClient\SignatureMethod\HmacSha1::buildSignature | ( | Request | $request, |
Consumer | $consumer, | ||
?Token | $token = null ) |
Request | $request | |
Consumer | $consumer | |
Token | null | $token |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.
MediaWiki\OAuthClient\SignatureMethod\HmacSha1::getName | ( | ) |
Reimplemented from MediaWiki\OAuthClient\SignatureMethod.