Java-JK
Java-JK

Reputation: 21

inject the Authenticated User in HTTP header from WSO2 ESB

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

Answers (1)

Thara Perera
Thara Perera

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

Related Questions