From 9fb92b56eceb0d1a84c6791d90dc1688c3da4b3e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 30 Jun 2016 15:49:31 +0200 Subject: show configuration options for authentication backends while listing storage Fixes #22447 --- apps/files_external/lib/Command/Backends.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files_external/lib/Command') 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; } -- cgit v1.2.3