tydids-ssi-consent-router is a lightweight, SSI-based consent management solution. It acts as a proxy between web forms and backend systems, ensuring compliance with GDPR data privacy regulations. The router stores consent data, including SSI IDs and payl
npm install tydids-ssi-consent-router

The way a developer uses this microservice is by letting a webform submit to the /frontend/submit endpoint. Depending on the configuration in the .env file, the user will either be redirected to a configured URL or the request will be forwarded to another URL, where the microservice will do a POST request and capture the results redirect location and send it with the response. In other words, the microservice can be used as a snap-in to existing webforms by setting the to the microservice and configuring the FORWARD_URLto the original target.
To install the microservice, follow these steps:
``shell`
git clone https://github.com/energychain/tydids-ssi-consent-router
cd tydids-ssi-consent-router
npm install
cp sample.env .env
file. You need to configure at least the PRIVATE_KEY. To create a new private key, run npm run createPrivateKey.Usage
To start the microservice, run npm start.
A test webform should be accessible at http://localhost:3000/showcase.html
Useful links
* TyDIDs Core: https://github.com/energychain/tydids-core
* TyDIDs Consent jQuery Extension: https://www.npmjs.com/package/tydids-jquery-consent
* Moleculer website: https://moleculer.services/
* Moleculer Documentation: https://moleculer.services/docs/0.14/NPM scripts
-
npm run dev: Start development mode (load all services locally with hot-reload & REPL)
- npm run start: Start production mode (set SERVICES env variable to load certain services)
- npm run cli: Start a CLI and connect to production. Don't forget to set production namespace with --ns argument in script
- npm run ci: Run continuous test mode with watching
- npm test: Run tests & generate coverage report
- npm run dc:up: Start the stack with Docker Compose
- npm run dc:down`: Stop the stack with Docker Compose
STROMDAO GmbH
Gerhard Weiser Ring 29
69256 Mauer
Germany
+49 6226 968 009 0
dev@stromdao.com
Handelsregister: HRB 728691 (Amtsgericht Mannheim)
https://stromdao.de/