It is very common that applications have already got a table of users but have not implemented security yet.
In this cases, WorkWithPlus provides a mechanism that makes possible to adapt WorkWithPlus security with an existent Users table from an application.
In order to do this, you should follow the steps below:
Lets explain it with an example. We have the following Users table:
Step 7 - Modify SecLogin WebPanel, so that the domain of the variables assigned to UserName and Password be based on attributes ExistentUsersName, ExistentUsersPassword. Also modify behaviour of 'DoLogIn' Event, so that navigates to existent Users table.
Step 8 - Change navigation of SecGrantAllAccessToAdminRole procedure in order to take into account our users (from ExistentUsers table) and not the generated by the pattern ones. Verify that the navigations are correct.
Step 9 - Then open SecGetRolesFromLoggedUser procedure and modify navigation in order to take into account our users (from ExistentUsers table) and not the generated by the pattern ones. Verify that the navigations are correct.
Step 10 - Finally open SecUpdateAdvancedSecurityObjects WebPanel and modify SecUserName variable for the userName of our transaction (ExistentUsersName)
Step 11 - Do 'Update Instance' to SecRole WorkWithPlus's instance.
Step 12 -Execute program and verify that works properly.
|