show configuration options for authentication backends while listing storage

Fixes #22447
This commit is contained in:
Robin Appelman 2016-06-30 15:49:31 +02:00
parent f982d104f3
commit 9fb92b56ec
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}