common/Ui/GenesisToolBox/README.md
2026-04-23 17:50:07 +02:00

10 lines
1.4 KiB
Markdown

Genesis Toolbox
---
In order to be used over different Xylem tenants and employees a AD and Local accounts authentication and authorization was added.
AD authentication is used on the first application start. After that each employee has the abillity to sign in himself with his lockal account's username and password. Assembly name and version is getted trough reflection. Successfuly authenticated users receiving a bearer token and a list of software functions saved into [Software.cs](https://slm.sms-esaap.com/la_operations/laa_production/-/blob/main/Common/Ui/GenesisToolBox/Infrastructure/Software.cs). Depending on the software functions are different options enabled or disabled.
***Note:*** _Application state depends on web service that is implemented in [LaaProductionWeb](https://slm.sms-esaap.com/la_operations/laa_production/-/tree/main/LaaProductionWeb/LaaProduction.Web/API/). Also keep in mind on changing the [SoftwareFunctions.cs](https://slm.sms-esaap.com/la_operations/laa_production/-/blob/main/Common/Ui/GenesisToolBox/Infrastructure/SoftwareFunctions.cs) or changing the software functions in the database you should ensure both places are up to date._
1. **Main form** - Each button is assigned to software function in the `button.Tag` attribute. Initialiy are all buttons disabled, enabling succeeds after authentication, depending on user's functions received from the API.