mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Update unit test: testDetermineAccessTokenInHeaderValid()
This commit is contained in:
parent
eeaa68400f
commit
2d26c38d6c
@ -57,7 +57,7 @@ class MacTest extends \PHPUnit_Framework_TestCase
|
|||||||
$request->getPort(),
|
$request->getPort(),
|
||||||
'ext'
|
'ext'
|
||||||
];
|
];
|
||||||
$calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), 'abcdef'));
|
$calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), 'abcdef', true));
|
||||||
|
|
||||||
$request->headers->set('Authorization', sprintf('MAC id="foo", nonce="foo", ts="%s", mac="%s", ext="ext"', $ts, $calculatedSignature));
|
$request->headers->set('Authorization', sprintf('MAC id="foo", nonce="foo", ts="%s", mac="%s", ext="ext"', $ts, $calculatedSignature));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user