aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhowardZa <33491519+howardZa@users.noreply.github.com>2021-09-23 14:58:13 +0200
committerszaimen <szaimen@e.mail.de>2022-02-07 13:42:12 +0100
commit5c821c713669d138f0dfa910163dd4770fb59a1c (patch)
tree510f931e7dfe1157011f9ebd3653d6b0e713066b
parentbb55b79837a677074473e980a6b88d358a118621 (diff)
downloadnextcloud-server-5c821c713669d138f0dfa910163dd4770fb59a1c.tar.gz
nextcloud-server-5c821c713669d138f0dfa910163dd4770fb59a1c.zip
Add SCHEME_NULL to list of allowed auth mechanism
Add Auth::Mechanism::SCHEME_NULL to list of allowed auth mechanism for AmazonS3 backend to allow attaching S3 storage to nextcloud instances running on already authorized instances (e.g. EC2 instances with IAM Instance roles) Signed-off-by: Wolfram Gries <wolfram.gries@zapooflex.net>
-rw-r--r--apps/files_external/lib/Lib/Backend/AmazonS3.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Backend/AmazonS3.php b/apps/files_external/lib/Lib/Backend/AmazonS3.php
index d85ac3639da..26da263f094 100644
--- a/apps/files_external/lib/Lib/Backend/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Backend/AmazonS3.php
@@ -25,6 +25,7 @@
namespace OCA\Files_External\Lib\Backend;
use OCA\Files_External\Lib\Auth\AmazonS3\AccessKey;
+use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\DefinitionParameter;
use OCA\Files_External\Lib\LegacyDependencyCheckPolyfill;
use OCP\IL10N;
@@ -54,6 +55,7 @@ class AmazonS3 extends Backend {
->setType(DefinitionParameter::VALUE_BOOLEAN),
])
->addAuthScheme(AccessKey::SCHEME_AMAZONS3_ACCESSKEY)
+ ->addAuthScheme(AuthMechanism::SCHEME_NULL)
->setLegacyAuthMechanism($legacyAuth)
;
}