Single User Access
From IHRIS Wiki
The is an authentication mechanism which authenticates users against a single user. It is present in version 4.1 of iHRIS. It uses an internal administrative account 'i2ce_admin' with password as defined below, as well a single user. This can be useful for a "Demonstration" or a "Stand-Alone" application.
This user access mechanism is implemented by the I2CE_UserAccess_Single class.
Enabling the Module
To enable, just make sure you have: <source lang='xml'>
<requirement name='UserAccess_LDAP_Hybrid'> <atLeast version='4.0'/> <lessThan version='4.1'/> </requirement>
</source>
Initialization String
The initialization string is sent to I2CE::initialize() in the index.php as the fourth argument, $user_access_init. This string must be prefixed with the 'Single://. What follows take any of the following formats:
- null: The is the default value and means that we use the defaults below
Example
The following would do an auto login of a guest user with the planner role
Single://{"auto_login":1, "auto_login_user":guest ,"userrole": "planner", "userdetails" :{"lastname","Health Workforce Planner"}}