Upgrade Authentication-Service
Step 0: Shutdown caGrid 1.3 Authentication Service
- Connect to your caGrid 1.3 Authentication Service server
- Shutdown your Tomcat Container

$ $CATALINA_HOME/bin/shutdown.sh
Step 1: Prepare Host
The caGrid 1.4 Training grid host was installed and configured according to the specifications listed on caGrid 1.4 Host Configuration page.
GlobalModelExchange specific requirements:
- Secure Container
Step 2: Prepare Configuration Files
Copy Authentication configuration files to new host.
- Download and extract https://wiki.cagrid.org/download/attachments/10617829/caGrid-1.4-Configs-NCI.zip
.
- Copy <target_grid>/Authentication/authentication.properties to $HOME/tmp
- Copy <target_grid>/Authentication/.java.login.config to $HOME/tmp
- Copy <target_grid>/Authentication/serviceMetadata.xml to $HOME/tmp
- Edit authentication.properties
- Do Not Set gaards.authentication.csm.truststore
- Set gaards.authentication.saml.cert to the location of your host certificate (which will be created below): /home/<USER>/.cagrid/certificates/<HOST>-cert.pem
- Set gaards.authentication.saml.key to the location of your host key (which will be created below): /home/<USER>/.cagrid/certificates/<HOST>-key.pem
- Do Not Set gaards.authentication.saml.key.password
Step 3: Install caGrid Software and Configure a secure container
In this step you will use the installer to install and configure caGrid. Be sure to read the following blue info box for special instructions for step 11, 15 and 16 of the installer before proceeding.
Install caGrid and Configure a Secure Container Using the caGrid 1.4 Installer
| At Step 11: Make sure you select the correct target grid for your installation QA: NCI QA Grid for caGrid 1.4 Stage: NCI QA Grid for caGrid 1.4 Production: NCI QA Grid for caGrid 1.4 Training: Training Grid for caGrid 1.4 Step 15: The hostname must be the externally routable name. For example, the Training Grid Master GTS external hostname is mastergts.training.cagrid.org and internal is cagrid-1_3-training-master-gts.cagrid.org. We specified mastergts.training.cagrid.org when creating credentials. Step 16: Select the option to create credentials with the GAARDS UI
|
At this point, your should set the following environment variables. The last step of the installer provides the paths for these settings:
- CAGRID_HOME which points to the location of your 'caGrid' source directory
- ANT_HOME which points to the location of your apache-ant-1.7.0 directory
- JAVA_HOME which points to the location of your jdk1.6.0_* directory
- GLOBUS_LOCATION which points to the location of your ws-core-4.0.3 directory
- CATALINA_HOME which points to the location of your apache-tomcat-5.5.27 directory
Step 4: Configure Authentication with prepared configuration files
- Copy authentication.properties

$ cp $HOME/tmp/authentication.properties $CAGRID_HOME/projects/authentication-service/etc/.
- Copy serviceMetadata.xml

$ cp $HOME/tmp/serviceMetadata.xml $CAGRID_HOME/projects/authentication-service/etc/.
- Copy .java.login.config

$ cp $HOME/tmp/.java.login.config $HOME/.
Step 5: Install Authentication Service
Deploy Service

$ cd $CAGRID_HOME/projects/authentication-service $ ant deployTomcat
Step 6: Start Tomcat
Start Tomcat as follows:

$CATALINA_HOME/bin/startup.sh
| Check the $CATALINA_HOME/logs/catalina.out file for any errors. |
Step 7: Update the Trusted Identity Provider information in Dorian
Here we will update the existing information in Dorian about this Authentication Service as a Trusted Identity Provider, by providing Dorian with its URL and grid identity, such that Dorian clients may discover it automatically.
- Start GAARDS UI

$ cd $CAGRID_HOME
$ ant security- Open GAARDS Preferences to set target grid
- Open the GAARDS Preferences Panel via the "Window" menu -> Preferences.
- Double click the grid that you wish to configure, then click the Set Target Grid button
- Open GAARDS Preferences to set target grid
- Click the "Login" button.
- On the Menu bar, click "Account Management" -> "Grid Account Management" -> "Trusted Identity Provider(s)".
- In the Trusted Identity Provider(s) window, Click the "Search" button.
- Double-click the identity provider that you need to edit
- In the resulting window's "Accepted Athentication Mechanisms" box at the bottom, make sure that the "Unspecified" checkbox is selected.
- Click the "Authentication Service" tab.
- Provide the "Authentication Service URL" (e.g https://cagrid-auth-qa.nci.nih.gov:8443/wsrf/services/cagrid/AuthenticationService
) - Provide the "Authentication Service Identity" (e.g /O=caBIG/OU=caGrid/OU=QA LOA1/OU=Services/CN=cagrid-auth-qa.nci.nih.gov)
- Provide the "Authentication Service URL" (e.g https://cagrid-auth-qa.nci.nih.gov:8443/wsrf/services/cagrid/AuthenticationService
- Click the "Certificate" tab.
- Click the "Import Certificate" button at the bottom
- Browse to the certificate that you created for this host.
Example: /home/<user>/.cacrid/certificates/<host>-cert.pem
The Java file browser on Mac doesn't let you browse to directories that start with a ".". You may have to copy your certificate to another location for this step.
- Click "Update".
Step 8: Validate
You can test that you Identity Provider has been successfully integrated by logging onto the Grid you are configuring. To do so complete the following steps:
- Start GAARDS UI

$ cd $CAGRID_HOME
$ ant security- Open GAARDS Preferences to set target grid
- Open the GAARDS Preferences Panel via the "Window" menu -> Preferences.
- Double click the grid that you wish to configure, then click the Set Target Grid button
- Click the "Login" button.
- From the Authority drop down select the appropriate Dorian for your grid (e.g caBIG QA)
- From the Organization drop down select the Authentication Service that you just installed.
- In the User Id text field enter you user id assigned to you by your Identity Provider.
- In the Password text field enter you password.
- Click the Login button, this will 1) authenticate you with your Identity Provider, 2) obtain a SAML Assertion from your Identity Provider, and 3) contact Dorian using the SAML Assertion to facilitate the creation of a grid proxy. Once the grid proxy is created the Create Proxy window closes and the Proxy Manager window opens with the newly created proxy shown.
- Open GAARDS Preferences to set target grid
If you are able to successfully login and obtain a Grid proxy your Identity Provider has been successfully integrated with the Training Grid.
Step 9: Configure Authentication to Start Automatically
For the Authentication service to be available upon reboot of your server Tomcat must be configured to start automatically.
Tomcat
- Configure Tomcat to start automatically: http://tomcat.apache.org/tomcat-5.5-doc/setup.html






