Re: [Dev] Enabling security with user name token

2015-10-16 Thread Hasintha Indrajee
Hi Rajith, Ideally even if you do not add authorization headers (xml), it should work. Ie POX handler converts basicAuth headers to xml security headers. In the current master branch of carbon-identity, this works as expected. On Fri, Oct 16, 2015 at 10:08 AM, Rajith Vitharana

Re: [Dev] Enabling security with user name token

2015-10-16 Thread Rajith Vitharana
Hi Hasintha, What I'm saying is that Soap UI doesn't send basic auth header, we have to manually add that. Thanks, On Fri, Oct 16, 2015 at 3:05 PM, Hasintha Indrajee wrote: > Hi Rajith, > > Ideally even if you do not add authorization headers (xml), it should > work. Ie POX

Re: [Dev] Enabling security with user name token

2015-10-15 Thread Hasintha Indrajee
Are you calling the service with security headers in the request it self ?. On Wed, Oct 14, 2015 at 8:37 PM, Rajith Vitharana wrote: > Hi Hasintha, > > We are using carbon-identity 4.5.6 > > @Firzan we are using [1] as the policy file which contains the element you > mentioned

Re: [Dev] Enabling security with user name token

2015-10-15 Thread Rajith Vitharana
Hi Hasintha, I was able to resolve the error with help of ESB team, There was an error in our deployment flow as well. How ever when we use Soap UI, it still doesn't send the security headers itself, where as we have to manually add the security header to the request This was working fine with

Re: [Dev] Enabling security with user name token

2015-10-14 Thread Rajith Vitharana
Hi Hasintha, We are using carbon-identity 4.5.6 @Firzan we are using [1] as the policy file which contains the element you mentioned above. [1] - http://svn.wso2.org/repos/wso2/people/isuruu/qos/synapse-configs/default/local-entries/p1.xml Thanks, On Wed, Oct 14, 2015 at 5:12 PM, Hasintha

Re: [Dev] Enabling security with user name token

2015-10-14 Thread Rajith Vitharana
+ Asela On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana wrote: > Hi, > > I have enabled security in DSS service specifying the policy file (roles > included in the policy). But when invoking the service with username > password, it throws below exception. > >

[Dev] Enabling security with user name token

2015-10-14 Thread Rajith Vitharana
Hi, I have enabled security in DSS service specifying the policy file (roles included in the policy). But when invoking the service with username password, it throws below exception. java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl cannot be cast to

Re: [Dev] Enabling security with user name token

2015-10-14 Thread Hasintha Indrajee
Can you please tell me the carbon-identity version you are using ? On Wed, Oct 14, 2015 at 3:04 PM, Rajith Vitharana wrote: > + Asela > > On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana > wrote: > >> Hi, >> >> I have enabled security in DSS service

Re: [Dev] Enabling security with user name token

2015-10-14 Thread Firzhan Naqash
Hi Rajith, This is related to permission issue from your policy file. We also encountered same issue some times ago and later figured out we were missing the following configuration in the policy file http://www.wso2.org/products/carbon/security;>