nextcloud/apps/cloud_federation_api/lib
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 chore: Apply new coding standard to all files 2026-06-01 13:46:39 +02:00
BackgroundJob feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00
Controller feat(cloud_federation_api): accept new protocol envelope and delegate validation 2026-06-17 11:01:13 +02:00
Db feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00
Events feat(OCM-invites): Implementation of invitation flow 2025-06-12 11:20:26 +02:00
Migration feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00
Capabilities.php chore: add missing Override attribute to app code 2026-04-28 21:29:28 +02:00
Config.php chore: Apply new coding standard to all files 2026-06-01 13:46:39 +02:00
ResponseDefinitions.php fix(OpenAPI): Adjust array syntax to avoid ambiguities 2024-11-05 09:58:11 +01:00