-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 4e5e0c9
Showing
6 changed files
with
107 additions
and
35 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 { | ||
|
||
/** | ||
* get federationId (one or multiple) in direct relation (recipient, author) of a token | ||
* in most case, token is the sharedSecret | ||
* | ||
* @param string $sharedSecret | ||
* @param array $payload | ||
* | ||
* @experimental 31.0.0 | ||
* @return array | ||
*/ | ||
public function getFederationIdsFromSharedSecret(string $sharedSecret, array $payload): array; | ||
} |