mirror of
https://github.com/nextcloud/server.git
synced 2026-06-20 14:09:38 -04:00
Accept both the legacy options.sharedSecret envelope and the new protocol[name].sharedSecret form. Preserve the original cloud ID so the factory can discover capabilities, then reset shareWith to the local username for user lookup. Delegate per-protocol validation to providers via the new IValidationAwareCloudFederationProvider interface, with split exception handling: BadRequestException -> 400, ProviderCouldNotAddShareException -> the exception's own HTTP status (501 fallback). In the notification handler, fall back to looking up the refresh token via OcmTokenMapMapper when the access token cannot identify the federation. Co-authored-by: Micke Nordin <kano@sunet.se> Signed-off-by: Micke Nordin <kano@sunet.se> Signed-off-by: Enrique Pérez Arnaud <enrique@cazalla.net> |
||
|---|---|---|
| .. | ||
| AppInfo | ||
| BackgroundJob | ||
| Controller | ||
| Db | ||
| Events | ||
| Migration | ||
| Capabilities.php | ||
| Config.php | ||
| ResponseDefinitions.php | ||