diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-06-30 15:49:31 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-06-30 15:50:14 +0200 |
commit | 9fb92b56eceb0d1a84c6791d90dc1688c3da4b3e (patch) | |
tree | a98fbc1d636f0f02fcb3da7191213602d6d222ca /apps/files_external | |
parent | f982d104f3d393ae15bca84c1bef373162b0fe3f (diff) | |
download | nextcloud-server-9fb92b56eceb0d1a84c6791d90dc1688c3da4b3e.tar.gz nextcloud-server-9fb92b56eceb0d1a84c6791d90dc1688c3da4b3e.zip |
show configuration options for authentication backends while listing storage
Fixes #22447
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Command/Backends.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/lib/Command/Backends.php b/apps/files_external/lib/Command/Backends.php index b5d5ad4d184..d1da6db3f6a 100644 --- a/apps/files_external/lib/Command/Backends.php +++ b/apps/files_external/lib/Command/Backends.php @@ -104,6 +104,10 @@ class Backends extends Base { $result['storage_class'] = $backend->getStorageClass(); $authBackends = $this->backendService->getAuthMechanismsByScheme(array_keys($backend->getAuthSchemes())); $result['supported_authentication_backends'] = array_keys($authBackends); + $authConfig = array_map(function (AuthMechanism $auth) { + return $this->serializeAuthBackend($auth)['configuration']; + }, $authBackends); + $result['authentication_configuration'] = array_combine(array_keys($authBackends), $authConfig); } return $result; } |