Hi all,
I am using servlet "proxy" deployed on cloud in application "app1" to act as a proxy towards servlet "destination" in application "app2"
I am basicaly re-using the well-known code from http://scn.sap.com/community/developer-center/cloud-platform/blog/2013/05/08/get-around-cross-origin-issues-in-your-java-script-applications-with-a-proxy
I have also defined an HTTP destination on my Cloud application and have defined its authentication as AppToAppSSO.
This destination points to the servlet "destination"
When I invoke the "proxy" servlet I get the following error:
java.lang.RuntimeException: System headers cannot be generated due to : com.sap.core.connectivity.httpdestination.common.HeaderGenerationException: com.sap.security.saml2.lib.common.SAML2Exception: No logged in user.
com.sap.core.connectivity.httpdestination.impl.HttpClientWrapper.injectHeaders(HttpClientWrapper.java:169)
com.sap.core.connectivity.httpdestination.impl.HttpClientWrapper.convertHttpRequest(HttpClientWrapper.java:159)
com.sap.core.connectivity.httpdestination.impl.HttpClientWrapper.convertHttpUriRequest(HttpClientWrapper.java:137)
com.sap.core.connectivity.httpdestination.impl.HttpClientWrapper.execute(HttpClientWrapper.java:61)
my web.xml is configured with:
<login-config>
<auth-method>FORM</auth-method>
</login-config>
I am currently blocking the following headers:
"host", "content-length", "SAP_SESSIONID_DT1_100"
should I unblock any of these?
Thanks, regards
Vincenzo