[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
17 years, 5 months
[EJB 3.0] - UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService **
by nanda_kishore
Hi i am getting this error when i am deploying ear file. I did not modified timer service can i know how to solve this problem.
*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
|
| jboss.ejb:persistencePolicy=database,service=EJBTimerService
| -> jboss.jdbc:datasource=DefaultDS,service=metadata{Start:** NOT FOUND **}
| -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:** NOT FOUND **}
| -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:** NOT FOUND **}
| -> jboss.jdbc:datasource=DefaultDS,service=metadata{Create:** NOT FOUND **}
|
| jboss.ejb:service=EJBTimerService
| -> jboss.ejb:persistencePolicy=database,service=EJBTimerService{Create:Configured}
| -> jboss.ejb:persistencePolicy=database,service=EJBTimerService{Start:Configured}
|
| jboss.j2ee:ear=iBlue.ear,jar=iBlue-ejb.jar,name=TemperatureFacade,service=EJB3
| -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService **}
|
| jboss.jca:name=JmsXA,service=ConnectionFactoryBinding
| -> jboss.jca:name=JmsXA,service=TxCM{Start:Configured}
| -> jboss.jca:name=JmsXA,service=TxCM{Create:Configured}
|
| jboss.jca:name=JmsXA,service=ManagedConnectionFactory
| -> jboss.messaging:service=ServerPeer{Create:Configured}
| -> jboss.messaging:service=ServerPeer{Start:Configured}
|
| jboss.jca:name=JmsXA,service=ManagedConnectionPool
| -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Start:Configured}
| -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Create:Configured}
|
| jboss.jca:name=JmsXA,service=TxCM
| -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Create:Configured}
| -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Start:Configured}
|
| jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory
| -> jboss.messaging:service=ServerPeer{Start:Configured}
| -> jboss.messaging:service=PostOffice{Create:** NOT FOUND **}
| -> jboss.messaging:service=PostOffice{Start:** NOT FOUND **}
| -> jboss.messaging:service=ServerPeer{Create:Configured}
|
| jboss.messaging.connectionfactory:service=ClusteredConnectionFactory
| -> jboss.messaging:service=ServerPeer{Start:Configured}
| -> jboss.messaging:service=PostOffice{Create:** NOT FOUND **}
| -> jboss.messaging:service=ServerPeer{Create:Configured}
| -> jboss.messaging:service=PostOffice{Start:** NOT FOUND **}
|
| jboss.messaging.connectionfactory:service=ConnectionFactory
| -> jboss.messaging:service=PostOffice{Create:** NOT FOUND **}
| -> jboss.messaging:service=PostOffice{Start:** NOT FOUND **}
| -> jboss.messaging:service=ServerPeer{Create:Configured}
| -> jboss.messaging:service=ServerPeer{Start:Configured}
|
| jboss.messaging.destination:name=DLQ,service=Queue
| -> jboss.messaging:service=ServerPeer{Start:Configured}
| -> jboss.messaging:service=PostOffice{Create:** NOT FOUND **}
| -> jboss.messaging:service=ServerPeer{Create:Configured}
| -> jboss.messaging:service=PostOffice{Start:** NOT FOUND **}
|
| jboss.messaging.destination:name=ExpiryQueue,service=Queue
| -> jboss.messaging:service=ServerPeer{Start:Configured}
| -> jboss.messaging:service=ServerPeer{Create:Configured}
| -> jboss.messaging:service=PostOffice{Create:** NOT FOUND **}
| -> jboss.messaging:service=PostOffice{Start:** NOT FOUND **}
|
| jboss.messaging:service=ServerPeer
| -> jboss.messaging:service=JMSUserManager{Start:** NOT FOUND **}
| -> jboss.messaging:service=JMSUserManager{Create:** NOT FOUND **}
| -> jboss.messaging:service=PersistenceManager{Start:** NOT FOUND **}
| -> jboss.messaging:service=PersistenceManager{Create:** NOT FOUND **}
|
| jboss.mq:service=DestinationManager
| -> jboss.messaging:service=ServerPeer{Start:Configured}
| -> jboss.messaging:service=ServerPeer{Create:Configured}
|
| jboss:service=KeyGeneratorFactory,type=HiLo
| -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:** NOT FOUND **}
| -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:** NOT FOUND **}
|
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| jboss.jdbc:datasource=DefaultDS,service=metadata -> ** NOT FOUND **
|
| jboss.messaging:service=JMSUserManager -> ** NOT FOUND **
|
| jboss.jca:name=DefaultDS,service=DataSourceBinding -> ** NOT FOUND **
|
| jboss.messaging:service=PostOffice -> ** NOT FOUND **
|
| <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService **
|
| jboss.messaging:service=PersistenceManager -> ** NOT FOUND **
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185918#4185918
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185918
17 years, 5 months