1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added expiry checking to API token auth

- Added test to cover to ensure its checked going forward
This commit is contained in:
Dan Brown
2019-12-30 19:51:41 +00:00
parent 3d11cba223
commit 3cacda6762
4 changed files with 34 additions and 4 deletions

View File

@ -13,4 +13,11 @@ trait TestsApi
return ["error" => ["code" => $code, "message" => $messge]];
}
protected function apiAuthHeader()
{
return [
"Authorization" => "Token {$this->apiTokenId}:{$this->apiTokenSecret}"
];
}
}