[JBossWS] - Propagate security context to second webservice call
by yousuf.raza
I have configured a sample prototype application that deploys a WebService (EJB endpoint) to JBoss 4.3 which is secured against my security domain using WS-Security (using UserNameToken.)
If the client provides the correct credentials the principal is set correctly.
My question is if I want to make a second WebService call from the first one is there a way I can propagate the security context without having to provide some credential information like this:
((BindingProvider)webserviceApi).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, WebServiceConstants.USERNAME);
((BindingProvider)webserviceApi).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, WebServiceConstants.PASSWORD);
Basically what I have in mind is something where the subsequent webservice call automatically adds the required ws-security header fields in the next request.
For eg. This would be similar to the case where if I were to make a call on a EJB from the webservice that was protected against the same security domain the container would handle the propagation of the security context.
Here is the flow I am talking about if I wasn't clear enough:
Client --> 1st Webservice --> 2nd Webservice
There is some documentation about doing this if using acegi security(spring security) but I was wondering if Jbossws does this somehow.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185922#4185922
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185922
16 years, 2 months
[JBossWS] - Re: Jboss 4.2.2 hangs when after deploying a WAR
by tonioc
finally I obtained the log (which full filled my file-system)
It seems some recursive behavior is the cause of this
hanging.
here is the log:
2008-10-30 18:01:08,213 INFO [org.jboss.wsf.stack.jbws.WSDLFilePublisher] WSDL published to: file:/home/xtra/u/jdesa/mccg/jboss-4.2.2.GA/server/default/data/wsdl/wstest.war/EchoService23289.wsdl
| 2008-10-30 18:01:08,394 DEBUG [org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl] EagerInitializeDeploymentAspect:Start
| 2008-10-30 18:01:08,394 DEBUG [org.jboss.ws.metadata.umdm.UnifiedMetaData] Eagerly initialize the meta data model
| 2008-10-30 18:01:08,397 DEBUG [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel] Registered as anon type: {http://www.mccg.net/xsd/phoenix/base-types/claim.xsd:>claimInvolvedParty>listOfExtraAttr} -> Complex type name='http://www.mccg.net/xsd/phoenix/base-types/basic.xsd,#AnonType_listOfExtr...', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='("http://www.mccg.net/xsd/phoenix/base-types/basic.xsd":extraAttr{0-UNBOUNDED})', derivedBy='RESTRICTION'.
|
There are 20Gb similar to the last line, I was not able to
find out a pattern that let me understand what is happening
it seems that the JBossXSModel (not sure what it is) is not capable of managing some kind of recursive references (?) inside an schema.
I tried a basic example Contact->ListOfAddress and Address->ListOfContact and it worked ok.
Continue investigating....
thanks to anybody who bothers reading my-emails
tonio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185824#4185824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185824
16 years, 2 months