Skip to content

Commit

Permalink
Merge pull request #28941 from howardZa/feature/allow_s3_access_wo_auth
Browse files Browse the repository at this point in the history
Add SCHEME_NULL to list of allowed auth mechanism
  • Loading branch information
szaimen authored Feb 8, 2022
2 parents d405b5f + 5c821c7 commit e2b8391
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/files_external/lib/Lib/Backend/AmazonS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -54,6 +55,7 @@ public function __construct(IL10N $l, AccessKey $legacyAuth) {
->setType(DefinitionParameter::VALUE_BOOLEAN),
])
->addAuthScheme(AccessKey::SCHEME_AMAZONS3_ACCESSKEY)
->addAuthScheme(AuthMechanism::SCHEME_NULL)
->setLegacyAuthMechanism($legacyAuth)
;
}
Expand Down

0 comments on commit e2b8391

Please sign in to comment.