Database-Based Authentication
In the database based authentication, the user names and passwords are stored in the database. Hawk Console supports both in memory database and external database to store authentication details. For more information about configuring an external database in Hawk Console, see Configuring an External Database
Adding a new user in the external database
You can add a new user in the external database using the following steps:
1. | Add the new user in the users table. |
For example:
insert into users (name, password, email, role_id) values('new_user', '#!SXcfN3U19IiH/Eai55LWvV4XNKV/eQIDfri6+J+rho4=', 'newUser@xyz.com',1);
2. | Create a mapping in the table user_privilege_mapping. |
For example:
insert into user_privilege_mapping (user_id, privilege_id) values((select id from users where name = 'new_user'), 1);