ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

riskminderclient.js sdk does not populate the externalIP object - provide details to get the externalIP address

book

Article ID: 238004

calendar_today

Updated On:

Products

CA Risk Authentication CA Advanced Authentication CA Advanced Authentication - Risk Authentication (RiskMinder / RiskFort)

Issue/Introduction

riskminderclient.js does not populate the externalIP object as shown below. Please provide function call to get the externalIP address.  Also note, released ca-riskauth-sample-application when deployed is using this externalIP address for evaluating risk.

 

Cause

Customers want to code to use the external IP address during Risk Evaluation as the released ca-riskauth-sample-application does. 

Environment

Release : 9.1,x

Component : AuthMinder(Arcot WebFort), RiskMinder(Arcot Riskfortt)

Resolution

Broadcom provided ca-riskauth-sample-application invokes this function getRemoteHost() to populate “externalip” as shown below. Customer can mimic the same. 

==  excerpt from index.jsp  as defined in Advanced Authentication  provided ca-riskauth-sample-application=============

function collectingSystemInfo() {

                                           try{

                                                          client.setProperty("externalip", "<%=request.getRemoteHost()%>");

                                                          client.setProperty("format", "json");

                                                          client.setProperty("didname", "<%=cookieName%>");

                                                          client.loadFlash(readyCallback);

             

                                           }catch(e){

                                                          alert(e);

                                           }

======================= End Of Excerpt ====================================================================

How to get to index.jsp file to study this code ?

  1. Deploy the ca-riskauth-sample-application.war in your Application Server (say Tomcat)
  2. Find the index.jsp as follows:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=cEiH/UtnpMrVnO2i9zw28A==

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=y2SUD3kyKqUdfj4pQAQQDA==

The IP address shown below for a deployed ca-riskauth-sample-application is the external IP address. The ca-riskauth-sample-application code calls getRemoteHost()  to get this IP address.

 

 

 

 

Additional Information

None.