Wednesday, March 14, 2018

How to read values in ESB from secure vault


Some time we have a requirement in which we have to keep our credentials in any secure message store. WSO2 provide secure vault feature in ESB to keep your credentials and you can get these hidden details with below property and use anywhere in your ESB logic.

Code:


<property expression="wso2:vault-lookup('Username')"
    name="UserName" scope="default" type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/>