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.
The negotiation and transfer process has been consolidated into a single uninterrupted HTTP request from the client’s perspective. The flow works as follows:
1. Client Request:
The client sends an HTTP request to the backend to access a specific resource.
2. Backend Calls Mediator API:
The backend forwards the request to a mediator API, which handles both negotiation and transfer between the provider and consumer connectors. The backend provides the mediator with:
- Asset ID – the identifier of the requested resource.
- Provider connector protocol URL – the endpoint of the provider connector.
- Provider connector ID – identifier of the provider connector.
3. Mediator Response:
The mediator performs the negotiation and transfer, returning to the backend:
- Token – authorizing access to the resource.
- Endpoint URL – the URL where the resource can be accessed.
4. Backend Accesses Resource:
Using the token and endpoint URL, the backend retrieves the resource from the third-party server.
5. Client Response:
The backend returns the resource directly to the client.