feat(ocm): add wayf specific /discover and /federations endpoints to sciencemesh package#432
Open
MahdiBaghbani wants to merge 15 commits intoowncloud:stable-7.1from
Open
feat(ocm): add wayf specific /discover and /federations endpoints to sciencemesh package#432MahdiBaghbani wants to merge 15 commits intoowncloud:stable-7.1from
MahdiBaghbani wants to merge 15 commits intoowncloud:stable-7.1from
Conversation
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
dce786a to
523c62a
Compare
…sciencemesh package update(ocm): OCM discovery to 1.2 feat(ocm): InviteAcceptDialog to OCM Discovery feat(ocm): add new ocm client to ocmd package for active discovery add: federations.json example add: changelog Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de> Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Instead of creating a client each time a function is called, create client once Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch> Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
@glpatcern recommendations moved types to spec.go used directory urls instead of a file Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
e48fd3c to
62de219
Compare
as per @glpatcern recommendations Also return 404 if the remote EFSS doesn't provide an inviteAcceptDialog Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 also follows the commit history from this PR #429
Description
This PR implements WAYF (Where Are You From) specific discovery endpoints for the ScienceMesh package, enabling dynamic OCM provider discovery and federation management. The implementation follows the OCM Discovery 1.2 specification.
Technical
Things I've added to Reva
/sciencemesh/federationsendpoint: Lists available federations and their associated servers/sciencemesh/federationsendpoint: Enables active discovery of OCM providers and their capabilitiesInviteAcceptDialogdiscovery: Dynamically retrieves invitation handling URLs from remote providersCode changes
internal/http/services/ocmd/client.go: HTTP client for OCM provider discovery with timeout and TLS configurationinternal/http/services/sciencemesh/wayf.go: Core logic for federation management and provider discoveryinternal/http/services/sciencemesh/sciencemesh.go: Added new endpoints and configuration optionsinternal/http/services/wellknown/ocm.go: Updated API version and addedInviteAcceptDialogsupportexamples/ocmd/federations.demo.json: Sample federations file demonstrating the expected format