mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
bb55b79837
commit
5c821c7136
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue