summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-04 13:17:58 +0100
committerGitHub <noreply@github.com>2018-01-04 13:17:58 +0100
commite6557324580e4f76107a059f9fe84b03fbae2b71 (patch)
treec49ed96c51c43b4965c62413c0deb9b63d1eecbf /apps/files_external
parentd984c4cdf12d11dfb0971480386abb78913e1375 (diff)
parent34ced4dd97a9c14975f6c5ff6bc3d6dbe463d64f (diff)
downloadnextcloud-server-e6557324580e4f76107a059f9fe84b03fbae2b71.tar.gz
nextcloud-server-e6557324580e4f76107a059f9fe84b03fbae2b71.zip
Merge pull request #7570 from nextcloud/s3-legacy-auth
add option to use legacy v2 auth with s3
Diffstat (limited to 'apps/files_external')
-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 c9759015121..5625805601c 100644
--- a/apps/files_external/lib/Lib/Backend/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Backend/AmazonS3.php
@@ -53,6 +53,8 @@ class AmazonS3 extends Backend {
->setType(DefinitionParameter::VALUE_BOOLEAN),
(new DefinitionParameter('use_path_style', $l->t('Enable Path Style')))
->setType(DefinitionParameter::VALUE_BOOLEAN),
+ (new DefinitionParameter('legacy_auth', $l->t('Legacy (v2) authentication')))
+ ->setType(DefinitionParameter::VALUE_BOOLEAN),
])
->addAuthScheme(AccessKey::SCHEME_AMAZONS3_ACCESSKEY)
->setLegacyAuthMechanism($legacyAuth)