Greetings everyone.
My team and I have been messing around with this project for quite some time and I was recommended to reach out here to see if the experts could assist us in what we are facing. Any and all advice is appreciated. Thank you in advance.
The task we have been handed is to place an iframe into our Hybris web application (not on commerce cloud yet) that will generate and display a Cognos report. The iframe should automatically authenticate the session by logging in and retrieving the CAM Passport and XSRF-Token and any other cookies that are required by Cognos. Cognos will generate the report based on parameters included in the request and display that report in the iframe.
Currently, we have been able to achieve authentication and such through a reverse-proxy and we pass every cookie that is from Cognos onto every request. We have validation methods to ensure that the cam passport is on the request, and others, that will re-authenticate with Cognos if they are not present. All requests are successfully going through the proxy and returning with 200 OK status and seems fine. Cognos displays, shows the blue spinning circle, and eventually will error out due to trying to redirect to a log in page. That's where all of the fine members of this group will hopefully give me a hint and send me on my way.
The issue and redirect happens when we reach a network request named "disp" it goes to ourDomain/ibmcognos/bi/v1/disp. When manually logging in and getting the report through Cognos, this is the request that then would display the report or at least there wouldn't be any Doc requests after it. In our application, this request is followed by redirects to a login page. That leads me to believe that it is some kind of authentication issue that isn't there for any of the other requests. I do get some console logs in my console on the browser that seems to indicate that it's somewhere within the logic of a Cognos bundle.js file.
We've tried adding our domain on the Cognos side of things and that hasn't changed anything. If anyone has anything that they think might help, it would be greatly appreciated. Thanks for your time.