feat(ocm): add WAYF configuration for reva OCM service
Although this PR is referenced under https://github.com/cs3org/OCM-STA/issues/1, it is not directly part of the STA funded work. However, since the changes are closely related and beneficial to OCM, I decided to port them here as well for consistency.
This PR depends on this PR https://github.com/opencloud-eu/reva/pull/393 to be merged in Reva.
Description
This PR adds "Where Are You From" configuration support for the Reva OCM service, enabling federation discovery functionality for Web application.
Technical
-
OCM Configuration: Added two new configuration fields to
ScienceMeshstruct:Federations: Path to JSON file for storing OCM federations data (default:{basepath}/federations.json)InviteAcceptDialog: Frontend URL for landing when receiving an invitation (default:/open-cloud-mesh/accept-invite)
-
Reva Integration: Updated OCM service configuration to pass WAYF related settings:
- Added
invite_accept_dialogto well-known OCM provider configuration - Added
federations_fileto ScienceMesh configuration
- Added
-
Proxy Routes: Added two new unprotected endpoints for WAYF public access:
/sciencemesh/federationsFederation listing endpoint/sciencemesh/discoverFederation discovery endpoint