Skip to content

Commit 049d887

Browse files
committed
add digest and content-length to signature verification
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 46cba2f commit 049d887

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Controller/RemoteController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
use Exception;
4444
use OC;
4545
use OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException;
46+
use OCA\Backup\AppInfo\Application;
4647
use OCA\Backup\Exceptions\RemoteRequestException;
4748
use OCA\Backup\IRemoteRequest;
4849
use OCA\Backup\Model\RemoteInstance;
@@ -90,6 +91,9 @@ public function __construct(
9091
parent::__construct($appName, $request);
9192

9293
$this->remoteStreamService = $remoteStreamService;
94+
95+
$this->setup('app', Application::APP_ID);
96+
$this->setupArray('enforceSignatureHeaders', ['digest', 'content-length']);
9397
}
9498

9599

0 commit comments

Comments
 (0)