Skip to Main Content

Passing BASIC authentication in WSRP

650230Jul 15 2008 — edited Jul 17 2008

I'm trying to do a very simple WSRP test in WebLogic Portal. I have two portal web applications in different domains, where one is a WSRP producer and the other is a WSRP consumer. The producer has another web application that contains images that are protected via BASIC authentication. What I want to do is have a portlet on the producer that shows one of these images, that can be used as a remote portlet for the consumer. So, in other words, I want the consumer to be able to see that image seamlessly, without having to authenticate again on that remote server.

However, the consumer only sees a broken image, and the header that is returned from the response says 'Unauthorized'. Here is what the producer's portlet looks like:

<img src="<render:resourceUrl path='/otherWebApp/otherImage.gif'/>">

Is there something else that I should be doing so that the producer can use the consumer's basic authentication to authenticate with this other web app, and correctly render this URL? Any help would be GREATLY appreciated!

Post Details
Added on Jul 15 2008