All pages and panels generated by Iron Speed Designer have a SystemUtils property for accessing the page's BaseClasses.Utils.SystemUtils object. This object is used by pages, panels, and controls as the main point of access for application security operations. (The BaseClasses.Data.DataAccessSettings class is also used for this, but it is initialized from the SystemUtils object's data). The security-related methods of the SystemUtils object are implemented to use regular database table(s) to authenticate users and determine user roles(s).
This example shows how to customize your application to use a different authentication mechanism.
Step 1: Modify the BaseClasses.Utils.SystemUtils class in
...\<Designer>\BaseClasses\Utils\SystemUtils.vb
In particular, you may need to modify the implementation of the following methods:
Public Function SetLoginInfo(ByVal userName As String, ByVal userPassword As String) As Boolean
Private Function GetUserLoginId() As String
Public Function GetUserInfo(ByVal userName As String, ByVal userPassword As String) As IUserIdentityRecord
Public Function IsUserHasAllowedRole(ByVal requiredRoles As String, ByVal userRoles As String) As Boolean
Step 2: Recompile BaseClasses.DLL using the modified BaseClasses source code.
Step 3: Copy the new BaseClasses.DLL (and BaseClasses.PDB if present) into your application’s Bin directory. Your application now has customized authentication.