ESB Get & Set Auth Header

SET HEADER

<property xmlns:ns="http://org.apache.synapse/xsd"  
           name="Authorization"  
           expression="fn:concat('Basic ', base64Encode('username:password'))"  
           scope="transport"/>

GET HEADER

<property name="AuthHeader" expression="$trp:Authorization"/>

<log>
 <property name ="====HEADER====" expression=get-property('AuthHeader')/>
</log>


GET JWT HEADER


<property name="authheader" expression="get-property('transport','X-JWT-Assertion')"></property>