]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add SCHEME_NULL to list of allowed auth mechanism 28941/head
authorhowardZa <33491519+howardZa@users.noreply.github.com>
Thu, 23 Sep 2021 12:58:13 +0000 (14:58 +0200)
committerszaimen <szaimen@e.mail.de>
Mon, 7 Feb 2022 12:42:12 +0000 (13:42 +0100)
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>
apps/files_external/lib/Lib/Backend/AmazonS3.php

index d85ac3639dacfea5691030e26e470a13f6ade4e3..26da263f094f79b17a7b999381fad15061896732 100644 (file)
@@ -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)
                ;
        }