fiskaltrust / middleware

The fiskaltrust.Middleware is an integrated set of highly configurable software components for POS systems to abstract the complexity of national fiscalization laws.
https://docs.fiskaltrust.eu
European Union Public License 1.2
9 stars 4 forks source link

Update FCC to 4.0.8 in SwissbitCloud and DF SCUs #249

Closed TSchmiedlechner closed 9 months ago

TSchmiedlechner commented 10 months ago

Background

The DeutscheFiskal released several new versions since our last update (we're on version 4.0.5, latest is 4.0.8. Most of the changes (listed here) are not super relevant for us, but a breaking change was introduced in 4.0.8 and our MW is not compatible with this version anymore.

Problem

A breaking change was introduced in FCC 4.0.8: the GET /info and POST /registration endpoints now require authentication. While we already have that in place for the latter, we use the /info endpoint without auth, leading to a failing GetTseInfo() method.

Solution

We need add authentication to the info endpoint, and should update our internally used FCC to v4.0.8. Additionally, we need to verify that the info endpoint of old FCCs can be used with authentication as well, in case someone wants to use older versions.

Tasks