StrataFrame Security Documentation Send comments on this topic.
Built-In Accounts

Glossary Item Box

Built-In Accounts

The StrataFrame security module allows you to specify the username and password for two built-in accounts to the application. The build-in accounts are disabled by default and both the username and password must be specified in order for the account to be active.

Administrator Account

The first account is an administrator account that has access to everything within the application (every permission is granted). This user is the default user that is set to the CurrentUser property (therefore, if the security module is not used, everything within the application is accessible). The built-in administrator account is generally used as a back door to the application.

Tip: It is generally recommended that the administrator’s password not be a constant; an algorithm that calculates the password according to the day of the year or time of day is much more secure.

Security Maintenance Account

The second account is a security maintenance account that provides access to only the portions of the application that are used to maintain user information. This account is generally used as a bootstrap for the initial setup of the users for the application (so you do not have to deploy any initial users for the application).

Configuring the Built-In Accounts

Configuring the built-in accounts requires 3 steps:

  1. Set the account username.
  2. Set the account password.
  3. Specify the pseduo primary key (user id) for the built-in account.
Sample – Configuring the Built-In Accounts [Visual Basic]
Imports MicroFour.StrataFrame.Security
...
Private Shared Sub InitApplication(ByVal e As InitializingApplicationEventArgs)
    '-- Configure the Administrator Account
    SecurityBasics.AdministratorUserName = "admin"
    SecurityBasics.AdministratorPassword = "pass" & DateTime.Now.Day.ToString()
    SecurityBasics.AdministratorUserPk = -1

    '-- Configure the security maintenance user
    SecurityBasics.SecurityMaintenanceUserName = "securitysetup"
    SecurityBasics.SecurityMaintenancePassword = "security"
    SecurityBasics.SecurityMaintenanceUserPk = -2
End Sub

Sample – Configuring the Built-In Accounts [C#]
using MicroFour.StrataFrame.Security;
...
private static void InitApplication(InitializingApplicationEventArgs e)
{
    //-- Configure the Administrator Account
    SecurityBasics.AdministratorUserName = "admin";
    SecurityBasics.AdministratorPassword = "pass" + DateTime.Now.Day.ToString();
    SecurityBasics.AdministratorUserPk = -1;

    //-- Configure the security maintenance user
    SecurityBasics.SecurityMaintenanceUserName = "securitysetup";
    SecurityBasics.SecurityMaintenancePassword = "security";
    SecurityBasics.SecurityMaintenanceUserPk = -2;
}