-
Download and if necessary unpack the gateway .war file.
-
Download and unzip the OpenIG sample configuration files.
-
Download and unzip Jetty 7.1.6 Hightide.
-
Copy the OpenIG .war file as
root.warto thewebapps/directory in Jetty.When copied to this location along with the
root.xmlfile below, Jetty automatically deploys OpenIG on startup.$ cp $HOME/gateway-*.war $HOME/jetty-hightide-7.1.6/webapps/root.war
-
Copy the
WordPressLogin.jsongateway configuration file to$HOME/.ForgeRock/OpenIG/config.json. By default, OpenIG looks forconfig.jsonin the$HOME/.ForgeRock/OpenIG/directory.$ cp $HOME/forgerock-sample-configs/WordPressLogin.json $HOME/.ForgeRock/OpenIG/config.json
-
Create
$HOME/jetty-hightide-7.1.6/contexts/root.xmlwith the following content. This tells Jetty to deploy OpenIG in the root context:<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath">/</Set> <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root.war</Set> <Set name="extractWAR">true</Set> <Set name="copyWebDir">false</Set> <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set> </Configure> -
If you are managing multiple applications in one domain you must turn on domain cookies in Jetty. This can be done by adding the following property to
$JETTY_HOME/contexts/root.xmlor to$JETTY_HOME/etc/jetty.xml. Note that any changes tojetty.xmlimpact all web applications running in the container.<Get name="sessionHandler"> <Get name="sessionManager"> <Set name="sessionDomain">.forgerock.com<Set> <Get> <Get> -
Start Jetty in the background:
$ $HOME/jetty-hightide-7.1.6/bin/jetty.sh start
Or start Jetty in the foreground:
$ java -jar $HOME/jetty-hightide-7.1.6/start.jar

