Previous Topic: Step 2: Initialize Device ID and DeviceDNA CollectionNext Topic: Step 4: Collect the IP Address


Step 3: Collect the Device ID and DeviceDNA

You must now ensure that you now get the Device ID along with the DeviceDNA, as follows:

  1. Ensure that on click of the Login (or Submit) button on the page, the following code snippet is called:
    <input type="button" value="Login" onClick="collectSystemInfo();">
    
  2. Ensure that you have defined the collectSystemInfo() function. For example, you can use the following code snippet:
    function collectSystemInfo()
    {
      client.processDNA();
     
      var json = client.getDNA();
      var did = client.getDID();
    
      document.CollectMFPToEvaluate.DDNA = json;
      document.CollectMFPToEvaluate.DeviceID = did ;
    
      //post to server, both the DeviceDNA and Device ID values for risk eval
    
    }
    
  3. After you have collected the DeviceDNA and the Device ID, as required, you must pass this collected information as input to evaluateRisk() method.

    See "Performing Risk Evaluation and Managing Associations" for more information.