Architecture of Styx - petafuel/styx GitHub Wiki
The Styx XS2A client is divided into several modules as shown below.
These modules are:
- The API, which is the main interface of Styx and includes the different service interfaces as AIS, PIS or PIIS, etc.
- PIS, AIS and PIIS libraries: They directly interface to the different API services of the ASPSP.
- The Consent Service also interfaces the ASPSP directly to obtain a consent and handle the different SCA methods.
- A Consent Frontend in case you perform an embedded SCA. This frontend uses the same REST calls as the client would when communicating with the API.
- The Persistence Service which handles the storage of consents and tokens.
- The ASPSP Look-Up is a directory of known ASPSPs and their API URLs and other information related to the XS2A interfaces.
Using Styx
Below you can find an exemplary sequence of how Styx is used. Styx is running server-based in this example. A client (e.g. browser or app) connects to the Styx Consent Manager to aqquire a consent. After the consent is given the Styx AIS client (called via Styx API) is used to access the XS2A API of the bank and to request the account transactions.