search cancel

REST API for EvaluateRisk returns Device ID - How to Store this Device ID into Browser?

book

Article ID: 212907

calendar_today

Updated On:

Products

CA Advanced Authentication - Strong Authentication (AuthMinder / WebFort) CA Risk Authentication CA Advanced Authentication

Issue/Introduction

User's Machine Finger Print (MFP/DeviceID) is returned as a JSON when AA REST API is used for Risk Evaluation. 

1. How is the Device ID that is created by riskminder-client.js stored in the users browser?

2. Does the riskminder.js take care of Creating as well as Storing the Device ID cookie in the user's browser?

 

 

Environment

Release : 9.1

Component : AuthMinder(Arcot WebFort)

Cause

Not Applicable (This is a Request For Information)

Resolution

The riskminder clinet JS will not automagically store DeviceID into the Browser application. When DeviceID is returned you will have to Store DeviceID

Below is strictly a Example code to achieve storing of  Device ID after inoking Risk Evaluation successfully.  Again this is an example and does not imply support.  This purely a guidance related code.

  ====================== Start of Example Code ============

       

<td><input type="button" name="SetDeviceID"
                        value="Store DeviceID" style="width: 150px" onclick="callSetCookie()" /></td>


                <!-- This will set the cookie on the client's browser. callSetCookie() is defined above -->

                        function callSetCookie()
                                 {
                                        var client = new ca.rm.Client();
                                        client.processDNA();
                                        var dna = client.getDNA();
                                        client.setProperty("didname", "<%=cookieName%>");
                                        client.setDID("<%=cookieValue%>");
                                        document.EvalResult.SetDeviceID.disabled=true;
                                        return;
                                 }

====================== End  of Example Code ============

Additional Information

None.