We have a ReST service developed using XML firewall. Now we need to add HTTP Basic authentication in the HTTP Headers going out of XML firewall.
We have created a user agent with BasicAuth policy and added to XML manager in XMLFW. But the Basic authentication is not added to HTTP header in the request.
So we redeveloped the ReST service gateway through MPGW and added same XML manager. Now the basic authentication is added in HTTP header.
We have come to know that we can add HTTP header using XSL in policy. But we don't want to add using XSL.
Please let me know how to make it happen in XML firewall.
Pinned topic BasicAuth policy with XML firewall
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-29T02:09:19Z at 2013-01-29T02:09:19Z by swlinn
Liv2luv 270002M1RW573 Posts
Re: BasicAuth policy with XML firewall2013-01-28T22:10:58ZThis is the accepted answer. This is the accepted answer.I would try using the 'header injection parameters' in XML FW
Header Name: Authorization
Header Value: Basic YmVucGJvY0FmZXBvUy5jb206cnVsZAM=
HermannSW 2700006U546379 Posts
swlinn 100000E7QE1396 Posts
Re: BasicAuth policy with XML firewall2013-01-29T02:09:19ZThis is the accepted answer. This is the accepted answer.The service's user agent contains a tab that allows you to specify a basic auth policy. The user agent is referenced by the xml manager which is referenced by your service. As a best practice, never update the default xml manager or user agent, but instead create new objects for this purpose.