nextcloud/apps/cloud_federation_api/lib/Controller
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
..
OCMRequestController.php fix(ocm): Correctly track OCM requests 2026-04-20 11:52:17 +02:00
RequestHandlerController.php feat(cloud_federation_api): accept new protocol envelope and delegate validation 2026-06-17 11:01:13 +02:00
TokenController.php feat(cloud_federation_api): add token exchange endpoint issuing JWT access tokens 2026-06-17 11:01:11 +02:00