mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
PHP code fix
This commit is contained in:
@@ -112,7 +112,7 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
|
|||||||
$calculatedSignatureParts[] = $params->get('ext');
|
$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 the access token if the signature matches
|
||||||
return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null;
|
return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null;
|
||||||
|
Reference in New Issue
Block a user