Back

Populating Credentials


A Logon Service can also be used to add Credentials to user's session. These Credentials can be quickly retrieved and are useful for storing user-specific information, e.g. the user's email address.

Credentials are stored as name-value pairs in a dedicated CREDENTIAL table in the Logon Service. The CREDENTIAL table contains ID and VALUE columns. To add a Credential to a user, insert a new row, specifying both a unique name in the ID column and a value in the VALUE column.

tables.CREDENTIAL.insertRow();
tables.CREDENTIAL.ID.value = "email";
tables.CREDENTIAL.VALUE.value = "joe.bloggs@example.com";
tables.CREDENTIAL.updateTable();