i2b2 Web Client
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Included in the code distribution is index.php which can act as a simple proxy for use in a PHP-enabled Apache web server. This proxy file requires PHP to be compiled with XML support (default setting in most Linux distributions). Within the PHP file are 2 arrays representing a white-list and black-list that are used to restrict all requests from connected web clients to only the IP addresses that the cells are located at.

$WHITELIST = array(
   "http:// ",
   "http://127.0.0.1:9090/axis2/rest/ ",
   "http://localhost:9090/axis2/rest/ ",
   "http://127.0.0.1:7070/i2b2/rest/ ",
   "http://localhost:7070/i2b2/rest/ ",
   "http://services.i2b2.org ",
   "https://services.i2b2.org "
);

$BLACKLIST = array(
   "http://127.0.0.1:9090/test/ ",
   "http://localhost:9090/test / ",
   "http://127.0.0.1:7070/test / ",
   "http://localhost:7070/test / "
);



If you are not running the web client on the Apache web server, you can delete the index.php file. There is also a prototype proxy that does not require the XML support to be compiled into the PHP interpreter.

...

The web client uses JSON -standardized configuration files that are loaded when it is first loaded. The most important of those configuration files is the connection configuration file called i2b2_config_data.js and is located in the root directory of the distribution package. Set the urlProxy value to point to the publicly accessible URL of your web Proxy as shown below.

{
   urlProxy: "http://localhost/services/proxy/Service.asmx/webProxy" ,
   urlFramework: "js-i2b2/",
   //-------------------------------------------------------------------------------
   // THESE ARE ALL THE DOMAINS A USER CAN LOGIN TO
   lstDomains: [
   { domain: "HarvardDemo",
      name: "VM Java 1.3 RC5",
      project: "Demo2",
      debug: true,
      urlCellPM: "http://webservices.i2b2.org/PM/rest/PMService/"
   },
   { domain: "demo" ,
      name: "VM Java 1.3 RC4",
      debug: true,
      urlCellPM: "http://192.168.0.120:9090/axis2/rest/PMService/"
   }
}



Step 4: Configure the Web Client's Connections to Various i2b2 Hives

...

Attribute

Description / Usage

domain

Used to specify the i2b2 domain / group.

name

The text that will be displayed to the user in the drop down box of the login page.

urlCellPM

Specifies the location of the PM Cell to be used for the user authentication process and to log into the hive.



{
   urlProxy: "http://localhost/services/proxy/Service.asmx/webProxy" ,
   urlFramework: "js-i2b2/",
   //-------------------------------------------------------------------------------
   // THESE ARE ALL THE DOMAINS A USER CAN LOGIN TO
   lstDomains: [
   { domain: "HarvardDemo",
      name: "VM Java 1.3 RC5",
      project: "Demo2",
      debug: true,
      urlCellPM: "http://webservices.i2b2.org/PM/rest/PMService/"
   },
   { domain: "demo" ,
      name: "VM Java 1.3 RC4",
      debug: true,
      urlCellPM: "http://192.168.0.120:9090/axis2/rest/PMService/"
   }
}



Displaying connection records in the login screen

...