User management
User
Users are defined at UP ServiceUiConfig. Following users are defined by default:
- guest with read only access
- service with full access
Roles
Each configured user has read only access by default. Configure additional access with role property.
Role | Comment |
---|---|
interfaceDataWrite | Controller interface data write access (Parameter, Config, Recipe, ...). |
interfaceDataImportExportAccess | Access for import/export functions at tool page. |
loggerDataImportExportAccess | Access for import/export functions at logger page. |
inputOutputForceAccess | Controller input/output force access. |
messageAcknowledgeAccess | Message list acknowledge button access. |
configurationAccess | Configuration page properties write access (PLC host, PLC target type, ...). |
users.json
Consider that configured users generated as data/users.json to Service Ui backend folder.
Password is hashed with SHA-512 algorithm and salt.
Login session
Authentication is handled with JSON Web Tokens created at service ui backend. Created token is valid for 7 days by default, configured with tokenExpirationTime at config.json. Token is stored at browsers localStorage. Consider that localStorage is cleared if Firefox option Delete cookies and site data when Firefox is closed at about:preferences#privacy is active. Add exception to host Service Ui address like http://localhost:8080