From 7375a348c6a8db6c3274a44309b108026c9eabd9 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 27 Dec 2014 21:05:46 +0000 Subject: [PATCH] PHP code fix --- src/TokenType/MAC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TokenType/MAC.php b/src/TokenType/MAC.php index bc4f82c4..0d56faf6 100644 --- a/src/TokenType/MAC.php +++ b/src/TokenType/MAC.php @@ -112,7 +112,7 @@ class MAC extends AbstractTokenType implements TokenTypeInterface $calculatedSignatureParts[] = $params->get('ext'); } - $calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), $macKey))); + $calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), $macKey)); // Return the access token if the signature matches return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null;