-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ocm): get details from sharedSecret from provider
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
- Loading branch information
1 parent
a6e8d41
commit ac47018
Showing
6 changed files
with
99 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
lib/unstable/Federation/ISignedCloudFederationProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace NCU\Federation; | ||
|
||
use OCP\Federation\ICloudFederationProvider; | ||
|
||
/** | ||
* Interface ICloudFederationProvider | ||
* | ||
* Enable apps to create their own cloud federation provider | ||
* | ||
* @experimental 31.0.0 | ||
*/ | ||
interface ISignedCloudFederationProvider extends ICloudFederationProvider { | ||
|
||
/** | ||
* returns federationId in direct relation (as recipient or as author) of a sharedSecret | ||
* the federationId must be the one at the remote end | ||
* | ||
* @param string $sharedSecret | ||
* @param array $payload | ||
* | ||
* @experimental 31.0.0 | ||
* @return string | ||
*/ | ||
public function getFederationIdFromSharedSecret(string $sharedSecret, array $payload): string; | ||
} |