diff options
author | VirtualTam <virtualtam@flibidi.net> | 2019-02-23 16:46:02 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2019-02-23 16:46:02 +0100 |
commit | af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e (patch) | |
tree | e461ef309a15e9b9da6058892350c4275558d783 /tests/api/ApiUtilsTest.php | |
parent | 1a3da5a5011fc79c2bf15a8d1f6c7dd9f87db715 (diff) | |
parent | 1c03b65e2ea722b39e54b22c46014f35e34b575b (diff) | |
download | Shaarli-af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e.tar.gz Shaarli-af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e.tar.zst Shaarli-af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e.zip |
Merge tag 'v0.10.3' into latest
Release v0.10.3
Diffstat (limited to 'tests/api/ApiUtilsTest.php')
-rw-r--r-- | tests/api/ApiUtilsTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/api/ApiUtilsTest.php b/tests/api/ApiUtilsTest.php index 62baf4c5..df4e189a 100644 --- a/tests/api/ApiUtilsTest.php +++ b/tests/api/ApiUtilsTest.php | |||
@@ -4,7 +4,6 @@ namespace Shaarli\Api; | |||
4 | 4 | ||
5 | use Shaarli\Base64Url; | 5 | use Shaarli\Base64Url; |
6 | 6 | ||
7 | |||
8 | /** | 7 | /** |
9 | * Class ApiUtilsTest | 8 | * Class ApiUtilsTest |
10 | */ | 9 | */ |
@@ -34,7 +33,7 @@ class ApiUtilsTest extends \PHPUnit_Framework_TestCase | |||
34 | $payload = Base64Url::encode('{ | 33 | $payload = Base64Url::encode('{ |
35 | "iat": '. time() .' | 34 | "iat": '. time() .' |
36 | }'); | 35 | }'); |
37 | $signature = Base64Url::encode(hash_hmac('sha512', $header .'.'. $payload , $secret, true)); | 36 | $signature = Base64Url::encode(hash_hmac('sha512', $header .'.'. $payload, $secret, true)); |
38 | return $header .'.'. $payload .'.'. $signature; | 37 | return $header .'.'. $payload .'.'. $signature; |
39 | } | 38 | } |
40 | 39 | ||