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.
build_signature(\Moneybird\Lib\OAuthRequest $request, \Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthToken $token) : string
the encoding is handled in OAuthRequest when the final request is serialized
\Moneybird\Lib\OAuthRequest
\Moneybird\Lib\OAuthConsumer
\Moneybird\Lib\OAuthToken
string
check_signature(\Moneybird\Lib\OAuthRequest $request, \Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthToken $token, string $signature) : bool
inherited_from | \Moneybird\Lib\OAuthSignatureMethod::check_signature() |
---|
\Moneybird\Lib\OAuthRequest
\Moneybird\Lib\OAuthConsumer
\Moneybird\Lib\OAuthToken
string
bool
get_name() : string
string