Overview
Introdução ao conteúdo da página.
On this page:
Table of Contents | ||
---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Content about Security Runtime Execution
Anchor | ||||
---|---|---|---|---|
|
During the launch of an application, the Login process accepts all users defined in the Project Configuration. Additionally, it is possible to add Runtime Users during runtime execution dynamically, and they are stored in a default database located in Datasets → Dos → RuntimeUsers. Customization of the database used for user storage is also possible in the Module Datasets. Furthermore, users can be created or modified using the Security Namespace's available methods.
To simplify user management, a platform Plugin is available in the Security Module that provides a template application for creating a Runtime Display. The UserManagement Plugin can be imported by selecting the appropriate Plugin in Project → Plugins. Once imported, the Plugin creates names, such as SecurityAccounts and ChangePass, that aid in user management.
The Security Namespace offers a wide range of methods that can be used to create or modify Runtime Users before starting runtime execution or during project execution. The documentation provides detailed information on the available features and methods, allowing users to enhance their application's functionality and flexibility during runtime. By utilizing the Security Module's capabilities, users can effectively manage Runtime Users, increasing the overall security and functionality of their applications.
In the following, you can find more details regarding the available RuntimeUser
methods in the Security namespace:
Code Block | ||||
---|---|---|---|---|
| ||||
Adding Runtime Users
@Security.NewRuntimeUser(string name, out int errorCode)
// Creates a new RuntimeUser
// name: User Name
// errorCode: Error code (output)
// Returns: String containing the error message (if error) or empty (if not error)
@Security.AddRuntimeUser(string name, string permissionsStr, string password, string passwordHint, string policyStr, string profilePhone, string profileCompleteName, bool oneTimePassword)
// Add Runtime User
// name: User Name
// permissions Str: Permissions
// password: Password
// passwordHint: Password hint
// policyStr: Policy
// profileEmail: Profile email
// profilePhone: Profile phone
// profileCompleteName: Profile complete name
// oneTimePassword: flag (true or false) to set a One Time Password setting. If true, a password change is required after first login
// Returns: String containing error message (if error) or empty (if not error) |
Anchor | ||||
---|---|---|---|---|
|
The Login page can be edited to modify its layout. To do this, select the LogOn display. In the code behind that display, the method Security.Logon()
is used for user validation. If you wish to implement a different user validation system, you can modify the logic and call your validation system before invoking the LogOn
method. The LogOn method should be called based on the results of your validation.
Another option to customize the logon process is adding your custom logic to the ClientStartup script task. This script runs on any computer connected to the server application. You can perform checks based on criteria such as computer IP, computer name, Windows Active-Directory logged user, or any other relevant factor to determine if the user is authorized to start the application and specify their credentials. If unauthorized access is detected, you can terminate the application by calling Client.Shutdown
. Alternatively, if the user is allowed access, you can call Security.Logon()
a user corresponding to the selected security profile.
By default, when launching the application on a client computer, it starts with the user GUEST instead of requesting a login. The GUEST user is similar to an anonymous login. If you do not want this behavior in your application, you can replace the startup page with a page that prompts for Logon information.
Anchor | ||||
---|---|---|---|---|
|
The Monitoring Client Connections empowers you to track and manage active connections. This functionality enables efficient troubleshooting and resource allocation for your project's needs.
In this section...
Page Tree | ||||
---|---|---|---|---|
|