Application-Level Security

<< Click to Display Table of Contents >>

Navigation:  Administration and Configuration > User Administration >

Application-Level Security

Design Role(s) for EQuIS Professional Users

Create Database Login(s)

Create EQuIS Enterprise Role and Assign Permissions

Login to EQuIS Professional

How Application Level Security Works

 

EQuIS Professional users may be configured at the database level (i.e., with a direct login to the EQuIS Database where security is controlled by the SQL Server Database and is managed by the database administrator). This is a database-level security or DLS user. Since this type of user connects directly to the EQuIS Database, there is greater access by default (e.g., there is no limitation on facility access unless manually configured in SQL Server by the database administrator). A DLS login can be granted permissions on database operations and objects such as create/update/insert/delete actions, tables, fields, and table listings.

 

EQuIS Professional also supports Application Level Security (ALS) users with facility-specific and other permission options configured by EQuIS administrators in EQuIS Enterprise. EQuIS Enterprise logins can be granted permissions on EQuIS objects and operations such as viewing, editing, and creating of facilities, reports, dashboards, and widgets. For more information, see the Permissions chapter.

 

EQuIS ALS users access Professional via an ALS role (a role with a DLS user in the connection string), retaining their EQuIS Enterprise permissions in Professional. This facilitates EQuIS user management and decreases the effort required by the DBA to create and maintain EQuIS Professional users.

 

Create an Application Level Security role with the following steps:

1.Design Role(s) for EQuIS Professional Users

2.Create Database Login(s)

3.Create EQuIS Enterprise Role and Assign Permissions

4.Login to EQuIS Professional

 

For more information on the connections and mechanisms involved, see How Application Level Security Works.

Warning: Potential Security Vulnerability: When using ALS, EQuIS Professional still uses a database connection string to make a direct TCP/IP connection to the database server. The encrypted connection string is sent via HTTPS response from EQuIS Enterprise to EQuIS Professional. EQuIS Professional decrypts the connection string and establishes the TCP/IP connection to the database using the credentials provided in the connection string.

 

EQuIS Professional hides the connection string from the user, so a typical user will never see the connection string or the credentials used to connect to the database. Without access to the connection string, a typical user will only be able to login to the database using EQuIS Professional, and will only be able to use facilities they are subscribed to.

 

Design Role(s) for EQuIS Professional Users

 

First, determine what actions, tables, and fields the users should have access to. For example, users might only need read-only permissions (and be denied the INSERT, UPDATE, or DELETE actions). There might be multiple configurations needed, for example:

The ES_PUBLIC database role for access to necessary EQuIS functions and stored procedures (as of the EQuIS 7.23.2 Build)

Read-only users (such as the standard SQL db_datareader role, although there are further EQuIS requirements as well)

Read-write users (such as the standard SQL db_datawriter role)

A group of users that can read/write to data tables (i.e., DT_*), but can only read reference tables (i.e., RT_*).

Note: Only one Application Level Security role can be assigned per user.

 

For EQuIS functionality, read-only users also need read/write access to the following tables/views:

 

Table/View

Purpose

Select

Insert

Update

Delete

ST_REPORT

Stores published report information

x

x

x

 

ST_REPORT_PARAMETER

Stores published report parameters

x

x

x

 

ST_USAGE

Report use logging

x

x

x

 

ST_USER_REPORT

Save User Reports

x

x

x

x

ST_USER_REPORT_PARAMETER

Save User Report parameters

x

x

x

x

ST_LICENSE

Use network license

x

x

x

x

ST_LICENSE_USE

Use network license

x

x

x

 

ST_LOG

Logs warnings such as when updates are needed

 

x

 

 

ST_USER

Update Login Time or (for new ALS roles) insert a record for the SQL user attached to the ALS role

x

x

x

 

XT_AUTH_ACL (Hidden)

Permissions

 

x

 

 

XT_AUDIT (Hidden)

Auditing records

 

x

 

 

ST_ID (View)

Lists EQuIS Unique Identifiers (EUIDs) and other system IDs

x

 

x

 

ST_REPORT_USE (Hidden)

Show when reports were run

x

x

x

 

 

For Groups functionality, EarthSoft recommends insert/update/delete on the following tables (optional):

RT_GROUP

RT_GROUP_MEMBER

RT_MTH_ANL_GROUP

RT_MTH_ANL_GROUP_MEMBER

 

For reading the default values of database fields, the GRANT VIEW DEFINITION permission is needed. For example, the Workflow Status column can be added to DT_WATER_LEVEL as a required column with a set default value. However, standard formats for water level data typically do not include DT_WATER_LEVEL.WORKFLOW_STATUS. Attempting to load water level data without GRANT VIEW DEFINITION on the DT_WATER_LEVEL table, 'dbo' schema, or database will lead to the following error:

 

Column 'workflow_status' does not allow nulls.

 

Note: Grant additional permissions for each role (and for specific users) with the permissions grid within the Enterprise Role Profile Editor. Examples include access to specific facilities, reports, and/or buttons within EQuIS Professional. By default, ALS roles created prior to EQuIS 7.0.0.19144 will be automatically granted Viewer permission to all Ribbon Tools in EQuIS Professional upon upgrade. However, newly created ALS roles will not have any permissions in the permissions grid; these will need to be assigned.

 

Create Database Login(s)

 

Once the necessary roles have been defined, the DBA needs to create a separate database login for each role. The login created should have the appropriate database permissions (and synonyms, where applicable) for the group of users that will be using that role. This includes the following:

tables and views mentioned in the previous section

the ES_PUBLIC role created in EQuIS 7.23.2, which provides access to necessary EQuIS functions and stored procedures

 

After creating the database login for each role, update the CONNECTION_STRING field for each record added to the ST_ROLE table. The connection string should be a valid .NET database connection string of the following form:

 

Data Source=dbserver;User ID=username;Password=password;Database=dbname;

 

Note that any advanced connection parameters, such as Connection Timeout, should be added here for the desired roles. When connecting to a self-hosted SQL Server instance that is not configured with a SSL certificate issued by a known certificate authority (CA), include the following advanced connection parameter in your connection string:

 

TrustServerCertificate=True;

 

Warning: SkipIsSameConnection: In order to ensure that both EQuIS Professional and EQuIS Enterprise are connected to the same database, the ALS web service (e.g., ./equis/remoteLogin.asmx) will compare the connection string from ST_ROLE.CONNECTION_STRING with the connection string in the web.config file. If the Data Source attribute or the database of those connection strings is different, the user will not be able to log in to Professional. In some situations, the Data Source must be different (e.g., an external IP address versus internal IP address). Disable the comparison by adding the following <appSetting> to the Enterprise web.config file:

 

<add key="SkipIsSameConnection" value="true" />

 

Read SqlConnection.ConnectionString Property for more about Microsoft SQL connection strings.

 

Example Connection Strings

 

The following examples presume a connection to a server named CorpDBMS01 with a database named 'EQuIS', username 'EQuIS_service', and password 'pa$$w0rd'.

 

Microsoft SQL Server using SQL Credentials

 

Data Source=CorpDMS01; Database=EQuIS; User ID=EQuIS_service; Password=pa$$w0rd;

 

Microsoft SQL Server using Windows Active Directory Credentials

 

Data Source=CorpDMS01; Database=EQuIS; Integrated Security=SSPI;

Note: The first time a user logs in to EQuIS Professional using ALS, the ST_ROLE.CONNECTION_STRING will be automatically encrypted in the database.

 

Create EQuIS Enterprise Role and Assign Permissions

 

1.Create the corresponding ALS role:

a.To create a new role, select the plus icon + in the Enterprise Role Manager widget.

b.In the Role Profile Editor that appears, provide a name and the connection string from the previous section. Save.

2.If EQuIS Enterprise users do not yet exist, an administrator should create user accounts in the Enterprise User Manager widget. Alternately, if configured, users can register for their own accounts.

3.The EQuIS administrator must activate new users and assign them to the ALS role. Assign only one ALS role per Enterprise user account. A user is not limited in the number of other Enterprise roles (e.g., Administrator, Manager, and/or User) they can have.

4.After assigning the role (and any other permissions the users need), ensure that the user has at least Viewer permission on one or more facilities as well as access to required buttons on the EQuIS Professional ribbon.

 

Login to EQuIS Professional

 

When the previous steps have been completed, login to EQuIS Professional using ALS. On the EQuIS Professional Connection screen, enter the following information as shown in the example below.

Server Name: <the full URL to the EQuIS Enterprise application>

Server Type: EQuIS Enterprise Login

PRO_Login-Enterprise-01

 

Note: If the server name begins with HTTPS, the EQuIS Enterprise login radio button will automatically be selected, as only connections with HTTPS in the Server Name will use Enterprise.

 

How Application Level Security Works

 

Application Level Security (ALS) is a feature implemented in EQuIS that allows the integration of Enterprise logins with EQuIS Professional.

 

Using ALS, the DBA only needs to create a handful of user account types in the database. The EQuIS Enterprise administrator can assign access to these accounts to EQuIS Professional users by role assignment. Once a user has been assigned an ALS login by their DBA, they will then use their Enterprise login (username and password) when logging into EQuIS Professional.

 

The ability for the user to log in to either application is based on the roles assigned. For example, there may be some users that can log in to Enterprise, but not Professional and vice versa. There may also be some users that can log in to both Enterprise and Professional.

 

Using EQuIS Professional with ALS executes these steps:

1.EQuIS Professional launches an embedded browser that connects to the Enterprise URL provided by the user (i.e., http://www.someserver.com/equis/).

2.The user enters their credentials in the Enterprise Login screen, and the window closes.

3.EQuIS Professional makes an HTTPS request to the ./remoteLogin.asmx web service at whatever Enterprise URL is provided by the user (i.e., http://www.someserver.com/equis/remoteLogin.asmx).

4.EQuIS Professional passes the credentials (encrypted) provided by the user as parameters to the web service.

5.The web service uses the "databaseConnection" connection string (in web.config file) to connect to the EQuIS Database.

6.The web service validates the encrypted user credentials against the ST_USER table in the database.

7.If user credentials are valid, the web service looks in the ST_ROLE and ST_USER_ROLE tables to determine if the user is assigned to an ALS role.

8.If the user is assigned to an ALS role, the web service retrieves the connection string from ST_ROLE.CONNECTION_STRING for the appropriate role.

9.The web service compares the ALS connection string with the databaseConnection string (in the web.config file) to make sure both connection strings point to the same server and database (but not necessarily the same SQL login). This comparison ensures that the user is actually connected to the correct database.

10.If the connection strings use the same server and database, the web service encrypts the ALS connection string and returns the encrypted connection string as the web service response.

11.EQuIS Professional decrypts the ALS connection string and opens a database connection over TCP/IP. SQL Server, and any applicable firewalls must be configured to allow TCP/IP connections from the end-user workstation using the ALS connection string.

 

Note: Users assigned to the "Admin" role in EQuIS Enterprise also need an ALS role assigned to login to EQuIS Professional. In Builds 7.20.2 and earlier, administrators could make ALS connections regardless of ALS role assignment. In Builds 7.20.3 and later, administrators must be members of an ALS role to use an ALS connection.