2015-10-29 12:27:14 -04:00
|
|
|
<?php
|
2024-05-28 10:42:42 -04:00
|
|
|
|
2015-10-29 12:27:14 -04:00
|
|
|
/**
|
2024-05-28 10:42:42 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-10-29 12:27:14 -04:00
|
|
|
*/
|
2019-11-08 04:55:51 -05:00
|
|
|
return [
|
|
|
|
|
'ocs' => [
|
|
|
|
|
// old endpoints, only used by Nextcloud and ownCloud
|
|
|
|
|
[
|
|
|
|
|
'name' => 'OCSAuthAPI#getSharedSecretLegacy',
|
|
|
|
|
'url' => '/api/v1/shared-secret',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'OCSAuthAPI#requestSharedSecretLegacy',
|
|
|
|
|
'url' => '/api/v1/request-shared-secret',
|
|
|
|
|
'verb' => 'POST',
|
|
|
|
|
],
|
|
|
|
|
// new endpoints, published as public api
|
|
|
|
|
[
|
|
|
|
|
'name' => 'OCSAuthAPI#getSharedSecret',
|
|
|
|
|
'root' => '/cloud',
|
|
|
|
|
'url' => '/shared-secret',
|
|
|
|
|
'verb' => 'GET',
|
2016-08-19 08:25:59 -04:00
|
|
|
],
|
2019-11-08 04:55:51 -05:00
|
|
|
[
|
|
|
|
|
'name' => 'OCSAuthAPI#requestSharedSecret',
|
|
|
|
|
'root' => '/cloud',
|
|
|
|
|
'url' => '/shared-secret',
|
|
|
|
|
'verb' => 'POST',
|
2016-08-19 08:25:59 -04:00
|
|
|
],
|
2019-11-08 04:55:51 -05:00
|
|
|
],
|
|
|
|
|
];
|