Skip to main content

Security question response validation

The security question response plugin provides additional validation logic of pre-defined and user-defined questions and answers. The plugin is executed when users are updating their security question profile.

To configure this type of plugin:

  1. Click Manage the system > Policies > Question sets .

  2. Select or add a pre-defined or user-defined question set.

  3. Set Plugin for validating answers to the name of your plugin.

  4. Click Update.

There is no shipped plugin in use with this plugin point.

Requirements

See Writing plugins for general requirements.

Input

The input KVGroup to the plugin is in the format:

"qarule" "" = {
   "qsid" = "<questionsetid>"
   "sessionid" = "<sessionid>"
   "<questionid_assigned_by_instance>" "" = {
     "answer" = "<answer_to_test>"
     "question" = "<human-readable question>"
   }
 }

Where <questionsetid> is the question set ID, <answer_to_test> is the answer provided by the user, and <human-readable question> is the question being answered.

Output

The output KVGroup for a successful validation is of the format:

"" "" = {
       "returnval" = "0"
}