How to implement HTTP basic auth in Mule ESB http:request -


i'm using http request in mule esb , need implement http basic auth in it. using explicit authorization header:

            <http:request config-ref="http_request_configuration" path="/activiti-rest/service/runtime/process-instances" method="post" doc:name="request bpm">                 <http:request-builder>                     <http:header headername="authorization" value="basic a2vybwl0onbhc3n3b3jkmq=="/>                 </http:request-builder>             </http:request> 

is there direct way enter user , password basic auth in mule http:request?

there sure is:

<http:request-config name="basicconfig" host="localhost" port="${httpport}">         <http:basic-authentication username="#[user]" password="#[password]" preemptive="#[preemptive]" />     </http:request-config> 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -