nextcloud/apps/cloud_federation_api
Enrique Pérez Arnaud 3956c4e9be
feat(cloud_federation_api): accept new protocol envelope and delegate validation
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>
2026-06-17 11:01:13 +02:00
..
appinfo feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00
composer feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00
l10n fix(l10n): Update translations from Transifex 2026-05-27 00:23:20 +00:00
lib feat(cloud_federation_api): accept new protocol envelope and delegate validation 2026-06-17 11:01:13 +02:00
tests feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00
LICENSE add cloud federation api app 2018-07-02 11:29:27 +02:00
openapi.json feat(cloud_federation_api): accept new protocol envelope and delegate validation 2026-06-17 11:01:13 +02:00
openapi.json.license chore: Add SPDX header 2024-05-31 10:38:47 +02:00
README.md chore: Add SPDX header 2024-05-31 10:38:47 +02:00

cloud_federation_api

The cloud federation API allows to share information like files, contacts, calendars, incoming calls, etc across Nextcloud instances