Skip to content

TransportClientBuilder.buildFor does not consider role #186

@atschabu

Description

@atschabu

We have an integration with a partner that provides different endpoints for roles receiver and sender. Therefore the buildFor fails to select the right url if the wrong role is first in the list.

For example as eMSP calling the SENDER endpoint will fail if RECEIVER is defined first

{
"url": "https://some.partner/emsp/2.2.1/locations",
"role": "RECEIVER",
"identifier": "locations"
},
{
"url": "https://some.partner/cpo/2.2.1/locations",
"role": "SENDER",
"identifier": "locations"
},

This also brings back the question around the usefulness of having transport in a different module #111 , given how tightly coupled it is with the protocol. There are too many non-overrridable extensions inside the toolkit.common that would be better served being in an abstract class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions