Reputation: 21
How I can inject the Authenticated User in HTTP header from WSO2 ESB Webservices. I want to inject auth user as a http header and read from back-end. Thanks
Upvotes: 2
Views: 94
Reputation: 604
Before the send : endpoint add following properties.
<property xmlns:ns="http://org.apache.synapse/xsd"
name="Authorization"
expression="fn:concat('Basic ', base64Encode('username:password'))"
scope="transport"/>
Upvotes: 1