How to forward the client's Basic Authentication credentials through HTTPRouter in JBoss ESB to the target proxies HTTP endpoint ?

Solution Verified - Updated -

Issue

  • There is a scenario where users implemented HTTP Basic Authentication on the target Webservice which is deployed on EAP 5 container. When users make a direct request to this Webservice , the Basic Authentication works fine. There is an ESB application which is sitting in between the client and the WebService code which acts as a proxy for the end WebService . When client code sends a request to the ESB's HTTP provider so that the request could be routed by HTTPRouter action class , the user needs to provide the credentials for Basic Authentication through http-client-property properties [1] of HTTPRouter action inside jboss-esb.xml file so that the client's request which has been routed through HTTPRouter contains the authentication details for the target WebService .
  • Can this process be skipped, so that the client's credentials can be directly forwarded to the target WebService without providing the same to the HTTPRouter action inside jboss-esb.xml file ?

[1] Configuring the HttpClient

Environment

  • Red Hat JBoss SOA Platform (SOA-P)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content