I am struggling to get an HTTP Adapter request to a protected rss feed to execute properly. I have read a ton of IBM's documentation, as well as chasing dead links to moved or "under maintenance" IBM pages. Unfortunately, none of the examples I have found show how to authorize this request.
For the sake of this example, I am trying to access an rss feed from the Connections installation in the IBM Greenhouse Environment.
Adapter XML:
<?xml version="1.0" encoding="UTF-8"?>
<wl:adapter name="exampleAdapter"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wl="http://www.worklight.com/integration"
xmlns:http="http://www.worklight.com/integration/http">
<displayName>feedRead</displayName>
<description>feedRead</description>
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>https</protocol>
<domain>greenhouse.lotus.com</domain>
<port>443</port>
</connectionPolicy>
<loadConstraints maxConcurrentConnectionsPerNode="2" />
</connectivity>
<procedure name="getFeed" connectAs="server"/>
</wl:adapter>
Adapter .js:
function getFeed() {
var input = {
method : 'get',
returnedContentType : 'xml',
path : 'connections/opensocial/basic/rest/activitystreams/@me/@all/@all? rollup=true&format=atom'
};
return WL.Server.invokeHttp(input);
}
How can I pass the credentials required to access this feed?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…