Donal Spring
donalspr@uk.ibm.com
<customSecurityTest name="AppAuth">
<test realm="wl_remoteDisableRealm" />
<test realm="wl_authenticityRealm" isInternalUserID="true"/>
<test realm="wl_deviceNoProvisioningRealm" isInternalDeviceID="true" />
</customSecurityTest>
<iphone bundleId="com.ibm.myapp" version="1.0" securityTest="AppAuth">
<security> Additional settings here </security>
</iphone>
<android version="1.0" securityTest="AppAuth">
<security>
<publicSigningKey>Key extracted from keystore </publicSigningKey>
</security>
</android>

Access Disabled - Worklight server does not test the Authenticity of the app
Enabled, servicing - Worklight server tests the Authenticity of the app; if it fails it services the device anyway
Enabled, blocking - Worklight server tests the Authenticity of the app; if it fails it blocks the devicevar options = { version: { major: 1, minor: 0, patch: 0 } }
WL.Client.invokeProcedure({
adapter : "RSSFeed",procedure : "getData",parameters : [options, "myTopic"]});
function getData (options, param) { if (options.version === 1){// do stuff for version one of the adapterinput = {method = "get",path = param,returnedContentType = "json"}return WL.Server.invokeHttp(input);} else if (options.version === 2){// adapter v2 mechanics// could also be used to call a new adapter:invocationData = { adapter : "RSSFeedV2",procedure : getData,parameters : [options, param]}return WL.Server.invokeProcedure(invocationData);};};
<connectivity> <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>http</protocol> <domain>mydomain.com</domain> <port>1080</port> <!--PROXY_SETTINGS--> <proxy> <protocol>http</protocol><domain>myproxydomain</domain><port>8080</port> </proxy> </connectionPolicy> <loadConstraints maxConcurrentConnectionsPerNode="10" /> </connectivity>
<connectivity> <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>http</protocol> <domain>mydomain.com</domain> <port>1080</port> <!--PROXY_SETTINGS--> <proxy> <protocol>${adapter.name.proxy.protocol}</protocol><domain>${adapter.name.proxy.domain}</domain><port>${adapter.name.proxy.port}</port></proxy> </connectionPolicy> <loadConstraints maxConcurrentConnectionsPerNode="10" /> </connectivity>
*without rebuilding WAR & Adapters
adapter.proxy.protocol=http adapter.proxy.domain=192.168.12.10 adapter.proxy.port=8080
In deploy-to-environment-ant.xml add <!--JNDI_PROPERTIES-->

<jndiEntry jndiName="worklight/adapter.proxy.protocol" value='"http"'/> <jndiEntry jndiName="worklight/adapter.proxy.domain" value='"192.188.12.10"'/><jndiEntry jndiName="worklight/adapter.proxy.port" value='"8080"'/>
var _domain = WL.Server.configuration["adapter.name.domain"];
var _UrlRoot = WL.Server.configuration["adapter.name.urlRoot"];
// transaction API need key and secret
var _transactionKey = WL.Server.configuration["adapter.name.transactionKey"];
var _sharedSecret = WL.Server.configuration["adapter.name.sharedSecret"];
adapter.name.domain=mydomain.com
adapter.name.urlRoot=/context/url
adapter.name.transactionKey=koasdnfsdpopBLAH-BLAH-ornep1048e-0wfiadsk
adapter.name.sharedSecret=SHHHH!mySecretKey <iphone bundleId="com.ibm.myapp" version="1.0" securityTest="AppAuth">
<worklightSettings include="true"/>
<security>
<encryptWebResources enabled="false"/>
</security>
</iphone>
<include optional="true" location="server.CI.xml"/><server>
<logging traceSpecification=
"com.worklight.adapters=FINEST:com.worklight.integration=FINEST"
traceFileName="stdout" maxFileSize="20" maxFiles="2"
traceFormat="BASIC" />
</server>
cp / scp depending on what you need / where you are