Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Operations Management Interface

Apply log in security example

  • Last UpdatedDec 11, 2024
  • 3 minute read

This topic describes a simple example of implementing login security interface to permit only authenticated users access to a ViewApp.

Add Users to a Security Authentication System

To implement ViewApp login security, users must be an authenticated member of an AVEVA OMI security system. System Platform AVEVA OMI provides three security modes:

  • Galaxy security

  • Windows User-Based security

  • Windows Group-Based security

Based on the authentication mode you select, ViewApp users must be added to the security system with a user name and password. The user should be assigned a role in the security authentication system with a defined Access level.

Build a Login Interface

A typical login interface includes a login button that is selected by the user to show the Login dialog box with fields to enter a username and password. Also, a log off button can be added for the user to log off from the ViewApp.

Build a Login dialog

This example of a login interface includes a table that shows the current value of the login security attributes. The attribute status column includes text elements with value display animation mapped to the login security attributes shown in the left column of the table.

Add Action Scripts to the Login and Logout Buttons

  • The Login button should include an action script calling the ShowLoginDialog() method, which shows the Login dialog box.

    Apply a script to a log in

  • The Logout button should include an action script calling the Logout() method, which logs the user out of the ViewApp.

    Apply a script to a log in

    Use Security Attributes with Value Display Animations

Add Value Display animation to a graphic element that you want to use to show security information. Configure the animation to use the Security attributes as reference values.

For information about the animation data types to assign Security attributes, see About security attribute data types.

Test the Interface

Run the ViewApp that includes a login security interface. After selecting the Login button, you should see the Login dialog box.

Configure ViewApp Security Test

After entering a valid user name and password, the Login dialog box should disappear and the security attributes should show that a user is logged on, the user name of the logged on user, and the time when the successful log on attempt was made.

Configure a ViewApp SecurityTest

TitleResults for “How to create a CRG?”Also Available in