swedenconnect / signservice

A signature service according to the Swedish eID Framework specifications
Apache License 2.0
4 stars 1 forks source link

Consider using default bean if nothing is given #145

Closed martin-lindstrom closed 1 year ago

martin-lindstrom commented 1 year ago

When configuring clients (engines) we need to point out an external bean even if we don't want to make any changes to the definition. Example:

    protocol:
      external:
        bean-name: signservice.DssProtocolHandler

We should make a change so that if there is only one bean of a particular type defined, we should default to that bean if nothing is set in the engine configuration. This makes configuration easier.

martin-lindstrom commented 1 year ago

Fixed in https://github.com/swedenconnect/signservice/pull/146