If you want to deploy a web visualization and securely protect it from third-party access, it is advantageous to set up runtime-based user management for it.
Runtime-based user management makes sure that users will log in securely with current technology. The credentials are managed using standard web technologies. In addition, user accounts can be created at runtime via secure channels, user credentials can be managed, and user permissions can be restricted according to the role of the user.
For this, it is necessary that the visualization user management is coupled with the device user management. You need to map the groups with their rights in the visualization to the groups in the device. You configure the user accounts centrally on the Users and Groups tab of the device editor.
If you do not want this because you value independent user management for your visualization and accept the outdated technology for this, then you can alternatively switch to legacy user management. This is not recommended if your controller supports runtime-based user management.
For more information, see:
-
CODESYS Essentials: Downloading an Application to the PLC: Handling of Device User Management
-
CODESYS Essentials: Protecting and Saving Projects: Setting Up User Management
User management linked to device user management for higher security
|
Tip |
|---|---|
|
Whenever possible, always use runtime-based user management. If you want to convert to your existing user management, then open the User Management → Groups tab in the Visualization Manager and click the Convert to Runtime-Based button. At this time, the user groups are taken over. The credentials of the users will be lost because these then have to be set up in the controller. |
The users are configured in the device user management on the Users and Groups tab of the device editor. If you want a user to have access only to a visualization but not to any device, then assign them a group membership and restrict the group permissions so that they are only allowed access to a visualization but not to any other device functionality.
For more information, see:
Deprecated but still available user management
Legacy user management runs independently of device user management.
In the deprecated visualization user management, you define user groups and visualization users in the Visualization Manager. In the user management dialogs, which request the credentials at runtime, authorized users log in to their visualization with their group permissions. In the visualization, elements can have group-dependent permissions and therefore be visible only to the group, for example.
In a project with several applications, you can configure user management for each application.
|
Important |
|---|---|
|
When a visualization user management exists, an unregistered user automatically receives the access rights from the |
For more information, see: User Management: Legacy
The login operation is always the same for all display variants. This means it is independent of which user management is set up.
Login operation on the display variants
-
The integrated display ignores the user management functionality and starts with the user who logged in to the controller using (Undefined variable: docInfo_EN.FreieVariable_4).
-
When a TargetVisu is started, no user is initially logged in and the operator then has to log in if this is required by the designed visualization
-
When starting a remote TargetVisu, the user from the communication settings of the remote TargetVisu itself is initially logged in. This can be changed via a new login within the visualization.
-
Web visualizations start with the secure login operation of runtime-based user management.
