summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-03-09 14:39:18 +0100
committerGitHub <noreply@github.com>2017-03-09 14:39:18 +0100
commitc23c062c89b214f4504a418cc96e5f6c740713f2 (patch)
treea2207a381aae90331ac25529fc2a95a8d89397d0 /lib
parent6d10a2aece9ab4cce0f57f20594b9fcb9372a794 (diff)
parent43bca9f7f611a96640a8363be44e6977a110aa03 (diff)
downloadnextcloud-server-c23c062c89b214f4504a418cc96e5f6c740713f2.tar.gz
nextcloud-server-c23c062c89b214f4504a418cc96e5f6c740713f2.zip
Merge pull request #3611 from nextcloud/announce-trsuted-server-endpoints
Announce trusted server endpoints
Diffstat (limited to 'lib')
-rw-r--r--lib/private/OCS/Provider.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/OCS/Provider.php b/lib/private/OCS/Provider.php
index 7d53479c6e2..2e9ed85b67b 100644
--- a/lib/private/OCS/Provider.php
+++ b/lib/private/OCS/Provider.php
@@ -70,6 +70,23 @@ class Provider extends \OCP\AppFramework\Controller {
];
}
+ if ($this->appManager->isEnabledForUser('federation')) {
+ if (isset($services['FEDERATED_SHARING'])) {
+ $services['FEDERATED_SHARING']['endpoints']['shared-secret'] = '/ocs/v2.php/cloud/shared-secret';
+ $services['FEDERATED_SHARING']['endpoints']['system-address-book'] = '/remote.php/dav/addressbooks/system/system/system';
+ $services['FEDERATED_SHARING']['endpoints']['carddav-user'] = 'system';
+ } else {
+ $services['FEDERATED_SHARING'] = [
+ 'version' => 1,
+ 'endpoints' => [
+ 'shared-secret' => '/ocs/v2.php/cloud/shared-secret',
+ 'system-address-book' => '/remote.php/dav/addressbooks/system/system/system',
+ 'carddav-user' => 'system'
+ ],
+ ];
+ }
+ }
+
if($this->appManager->isEnabledForUser('activity')) {
$services['ACTIVITY'] = [
'version' => 1,