We are using a custom sign on to the GBC, using this code on Github:
https://github.com/FourjsGenero/ex_simplessoSo we are having some success.
We have place the external file in it's own group defined in as.xcf:
<GROUP Id="mttestwebapp">$(res.path.mttestpath.test_webapp)</GROUP>
<GROUP Id="mttestwebsvc">$(res.path.mttestpath.test_wsapp)</GROUP>
So the external configuration file for the app resides in /users/mtdev/test_webapp and the
external configuration file for the webservice resides in /users/mtdev/test_wsapp.
The XHTML files for the forms reside in /users/mtdev/mt.res.
So the in the application code for the web service (HTTPHelper.4gl), I tweaked the path for the form:
FUNCTION SendWelcomePage(req, login_url)
DEFINE req com.HttpServiceRequest
DEFINE login_url STRING
DEFINE htmlContent STRING
DEFINE htmlDom xml.DomDocument
DEFINE node xml.DomNode
DEFINE list xml.DomNodeList
LET htmlDom = xml.DomDocument.Create()
#Load the HTML as xml document
CALL htmlDom.load ("mt.res/MTSSOLogin.xhtml")
#CALL htmlDom.load ("../res/SSOLogin.xhtml")
It finds the form and displays it in my browser.
But it does not find the image I have in the HTML code:
<img src="mt.res/web_mtstart.png" ></img>
I have tried changing that to all sorts of paths. This is what it shows in the Chrome developer's console:
GET
http://192.168.21.4/gas/ua/r/mttestwebapp/mt.res/web_mtstart.png 404 (Not Found)
Here's the app configuration file:
<APPLICATION Parent="defaultgwc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://4js.com/ns/gas/3.10/cfextwa.xsd"
>
<EXECUTION>
<PATH>$(res.path.mttestpath.bin)</PATH>
<DVM>/bin/bash</DVM>
<MODULE>mt_launch_gbc_test.sh</MODULE>
<DELEGATE service="mttestwebsvc/MTSSOService"/>
</EXECUTION>
<AUTO_LOGOUT>
<TIMEOUT>6000</TIMEOUT>
<PROMPT Timeout="9000" Type="DELEGATE">mttestwebsvc/MTSSOService</PROMPT>
</AUTO_LOGOUT>
</APPLICATION>
Here is the web service configuration file:
<APPLICATION Parent="ws.default"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://4js.com/ns/gas/3.10/cfextws.xsd"
>
<EXECUTION>
<ENVIRONMENT_VARIABLE Id="FGLWSDEBUG">9</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="FGLSQLDEBUG">9</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="MTPATH">/users/mtdev</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="DBNAME">mtdev</ENVIRONMENT_VARIABLE>
<PATH>$(res.path.mttestpath.bin)</PATH>
<DVM>/bin/bash</DVM>
<MODULE>MTSSOService.sh</MODULE>
</EXECUTION>
How do I go about figuring out where to place that image?
Thank you for any insight.
Gas 3.10.08 and Genero 3.10.09. Using fastcgidispatch through Apache on centos 7
Candy