feat(ocm): add WAYF configuration for reva OCM service #11758
      
        
          +39
        
        
          −15
        
        
          
        
      
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    


Although this PR is referenced under cs3org/OCM-STA#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 owncloud/reva#432 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:
invite_accept_dialogto well-known OCM provider configurationfederations_fileto ScienceMesh configurationProxy Routes: Added two new unprotected endpoints for WAYF public access:
/sciencemesh/federationsFederation listing endpoint/sciencemesh/discoverFederation discovery endpoint