1.4 KiB
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. Depending on the software functions are different options enabled or disabled.
Note: Application state depends on web service that is implemented in LaaProductionWeb. Also keep in mind on changing the SoftwareFunctions.cs or changing the software functions in the database you should ensure both places are up to date.
- Main form - Each button is assigned to software function in the
button.Tagattribute. Initialiy are all buttons disabled, enabling succeeds after authentication, depending on user's functions received from the API.