Use a Custom Rule Type on Linux

After you build your own Custom Rule Type or the sample Custom Rule Type, add the rule type to CA Risk Authentication for use in creating rules.
aatest
After you build your own Custom Rule Type or the sample Custom Rule Type, add the rule type to CA Risk Authentication for use in creating rules.
Add the Custom Rule Type Using the Product Interface
After the shared library is built, add the rule type using the product interface:
  1. Move the shared library (.so file) from the location where you build it to the plugins/rules directory.
  2. Your XML configuration file must reside on the system where you run your browser. If the XML file was built on a different system, copy it to this system.
  3. Log in to the Administration Console as the Master Admin.
  4. Click Services and Server Configurations.
  5. Click Risk Authentication.
  6. Click Add Rule Type.
  7. On the Add Rule Type screen, enter the following information:
    • The Name of the Rule Type: The name that you would like to give the rule type.
    • The Library Name (w
      ithout
       the prefix 
      or
       extension). For example, if the library name is libtempaddonrule.so, enter 
      tempaddonrule. 
    • Input Definition XML: Browse to the XML configuration file associated with the Rule Type.
  8. Click Create.
    The Rule Type is added.
Create a Rule from the Custom Rule Type
  1. Log on to the Administration Console as a Global Administrator, click Organizations
    If prompted, pick your organization.
  2. Click Risk Authentication Configuration, click Rules and Scoring Management, and pick the appropriate ruleset.
  3. Click Add a new rule.
    Rule Builder appears. 
  4. Specify a name, mnemonic, and description for your rule.
    If appropriate, click Channels and Actions.
  5. In the Build the new Rule Fragments section, pick the custom rule type. Locate it under Custom Elements.
  6. Under Select Operator, pick CUSTOM_RULE_CONFIG, enter the parameters for this rule instance.
    For the sample Custom Rule Type, the parameters are Minimum Temperature and Maximum Temperature. Enter 55 and 90, respectively, for testing purposes.
  7. Click Add, Click Create, and Enable the rule.
  8. Migrate the rule to production.
  9. Refresh the Cache from the Administration Console.
Test the Custom Rule
Use this procedure to test a new rule that is based on the sample Custom Rule Type or your own Custom Rule Type. If the new rule created with your Custom Rule Type uses more inputs, replace them as appropriate. 
  1. From the product interface, browse to the CA Risk Authentication Sample Application, and Click Evaluate Risk.
  2. Enter a user name.
    Under more Inputs, enter the following values:
    • Name: SAMPLE_TEMP
    • Value: 45
  3. Click Evaluate Risk.TEMPCHECK=Y appears in the Risk Annotation.
  4. Repeat steps 4 and 5 with SAMPLE_TEMP value 75.
    TEMPCHECK=N is shown in the Risk Annotation.