diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-02-25 20:46:01 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-02-26 09:26:55 +0100 |
commit | 59028cced0a4f7377de9c22012c7624440b14a56 (patch) | |
tree | dc209a35e1626309032640459bec268323e51bac /lib/private/share20 | |
parent | cb41b1a86397579d55e0ce96e67b80a83037d1d2 (diff) | |
download | nextcloud-server-59028cced0a4f7377de9c22012c7624440b14a56.tar.gz nextcloud-server-59028cced0a4f7377de9c22012c7624440b14a56.zip |
Add autodiscovery support to server-to-server sharing
Adds autodiscovery support to server-to-server sharing as specified in the specification. If no discovery data is found it is using the fallback ownCloud endpoints for legacy support.
Diffstat (limited to 'lib/private/share20')
-rw-r--r-- | lib/private/share20/providerfactory.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/share20/providerfactory.php b/lib/private/share20/providerfactory.php index bb440d2e01f..c2980b22515 100644 --- a/lib/private/share20/providerfactory.php +++ b/lib/private/share20/providerfactory.php @@ -21,6 +21,7 @@ namespace OC\Share20; use OCA\FederatedFileSharing\AddressHandler; +use OCA\FederatedFileSharing\DiscoveryManager; use OCA\FederatedFileSharing\FederatedShareProvider; use OCA\FederatedFileSharing\Notifications; use OCA\FederatedFileSharing\TokenHandler; @@ -91,9 +92,14 @@ class ProviderFactory implements IProviderFactory { $this->serverContainer->getURLGenerator(), $l ); + $discoveryManager = new DiscoveryManager( + $this->serverContainer->getMemCacheFactory(), + $this->serverContainer->getHTTPClientService() + ); $notifications = new Notifications( $addressHandler, - $this->serverContainer->getHTTPClientService() + $this->serverContainer->getHTTPClientService(), + $discoveryManager ); $tokenHandler = new TokenHandler( $this->serverContainer->getSecureRandom() |