show configuration options for authentication backends while listing storage
Fixes #22447
This commit is contained in:
parent
f982d104f3
commit
9fb92b56ec
|
@ -104,6 +104,10 @@ class Backends extends Base {
|
||||||
$result['storage_class'] = $backend->getStorageClass();
|
$result['storage_class'] = $backend->getStorageClass();
|
||||||
$authBackends = $this->backendService->getAuthMechanismsByScheme(array_keys($backend->getAuthSchemes()));
|
$authBackends = $this->backendService->getAuthMechanismsByScheme(array_keys($backend->getAuthSchemes()));
|
||||||
$result['supported_authentication_backends'] = array_keys($authBackends);
|
$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;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue