-
Notifications
You must be signed in to change notification settings - Fork 123
feat(ocm): add wayf specific /discover and /federations endpoints to sciencemesh package #5385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4475c09 to
7e5820a
Compare
…sciencemesh package Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
7e5820a to
54ba127
Compare
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
glpatcern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution, very good, just a couple of comments
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>
@glpatcern recommendations moved types to spec.go used directory urls instead of a file Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
Signed-off-by: Mahdi Baghbani <mahdi-baghbani@azadehafzar.io>
glpatcern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned, this is all good to go to QA except for a mini fix you could do
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>
glpatcern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, looking forward to the corresponding web frontend code!
This PR is a part of cs3org/OCM-STA#1
Description
This PR implements WAYF (Where Are You From) specific discovery endpoints for the ScienceMesh package, enabling dynamic OCM provider discovery and federation management.
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/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: Changed the default path ofInviteAcceptDialogfor the new GUI chnages