Developers Getting Started With i2b2
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Modify the i2b2_config_data.json file js file located in the directory /var/www/html/webclient/ as needed. In particular, you will want a domain entry with loginType = "federated" (see 1.4.2 Domain Configuration) and you will want to update the URL to begin with 127.0.0.1 (to use the AJP proxy to the Hive).

{
    "urlProxy": "index.php",
    "urlFramework": "js-i2b2\/",
    "startZoomed": true,
    "lstDomains": [
        {
            "domain": "i2b2demo",
            "name": "HarvardDemo SAML",
            "allowAnalysis": true,
            "urlCellPM": "http:\/\/127.0.0.1\/i2b2\/services\/PMService\/",
            "registrationMethod": "saml",
            "loginType": "federated",
            "showRegistration": true,
            "installer": "\/webclient\/plugin_installer\/",
            "debug": true
        },      
        {
            "domain": "i2b2demo",
            "name": "HarvardDemo",
            "allowAnalysis": true,
            "urlCellPM": "http:\/\/127.0.0.1\/i2b2\/services\/PMService\/",
            "registrationMethod": "",
            "loginType": "local",
            "showRegistration": false,
            "debug": true
        }
    ]
}

Modify the config.php file located in the directory /var/www/html/webclient/registration/user. Set the PHP variable $config_pm_uri to the following:

$config_pm_uri = '<http://127.0.0.1/i2b2/services/PMService/getServices';>

Note that the domain is 127.0.0.1 because the Apache HTTP server is forwarding the path /i2b2/services/ on port 80 of 127.0.0.1.

Restart the Apache web server:

...