UsernameToken Password Digest Doesn't work for WSO2 ESB proxy services

yakovo's picture
Hi, If using basic username token authentication scenario provided by the WSO2 ESB v 2.0.2 (username token with a plain password over https) for a proxy service, everything works fine. Now I want my client to send a password digest over http. In this case the ESB throws general security exception, so obviously it needs a callback handler to process digest validation. For doing that, I disable the basic scenario applied and attach the policy to my proxy service instead. Now, each client call fails on read time out error. Increasing client's timeout config didn't help. The same scenario worked just fine without WSO2 ESB (just axis2+rampart on tomcat). A jar with my password callback handler I put in ${wso2.esb.home}/lib/extensions folder, so there's no problem in class loading. The policy attached to a proxy service is attached to this topic. Has anyone ever succeeded to run usernametoken with password digest security scenario on WSO2 ESB v 2.0.2?
AttachmentSize
policy.xml871 bytes
supun's picture

Can you please provide your

Can you please provide your synapse.xml file and log file. That way we can identify the problem easily. Thanks, Supun..
yakovo's picture

Hi, I've succeeded with the

Hi, I've succeeded with the digest scenario after packaging my callback handler as an OSGi bundle and putting it into plugins folder of the esb installation. It works now:) Regards.
supun's picture

Good to hear you got it to

Good to hear you got it to work. Thanks, Supun..
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)