mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-13 00:35:53 +05:30
PHP code fix
This commit is contained in:
parent
ae5dd9ce65
commit
7375a348c6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user