Author: sergeyb
Date: 2010-05-31 07:45:13 -0400 (Mon, 31 May 2010)
New Revision: 12404
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/login-config.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/roles.properties
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/users.properties
Modified:
stack/cxf/trunk/modules/server/pom.xml
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/AuthenticationManagerLoader.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/ServiceImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernameAuthorizationTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernamePasswordCallback.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/jbossws-cxf.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/wsdl/SecurityService.wsdl
stack/cxf/trunk/pom.xml
Log:
JBWS-3028: introducing PicketBox API
Modified: stack/cxf/trunk/modules/server/pom.xml
===================================================================
--- stack/cxf/trunk/modules/server/pom.xml 2010-05-31 08:41:17 UTC (rev 12403)
+++ stack/cxf/trunk/modules/server/pom.xml 2010-05-31 11:45:13 UTC (rev 12404)
@@ -208,6 +208,10 @@
<groupId>org.jboss.security</groupId>
<artifactId>jboss-security-spi</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.picketbox</groupId>
+ <artifactId>picketbox-bare</artifactId>
+ </dependency>
<!-- transitve dependencies -->
<dependency>
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/AuthenticationManagerLoader.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/AuthenticationManagerLoader.java 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/AuthenticationManagerLoader.java 2010-05-31
11:45:13 UTC (rev 12404)
@@ -26,6 +26,7 @@
import javax.naming.NamingException;
import org.jboss.security.AuthenticationManager;
+import org.picketbox.factories.SecurityFactory;
/**
* AuthenticationManager loader
@@ -35,7 +36,7 @@
*/
public class AuthenticationManagerLoader
{
- public AuthenticationManager getManager()
+ public AuthenticationManager getManagerWithJndi()
{
try
{
@@ -45,7 +46,24 @@
}
catch (NamingException ne)
{
- throw new SecurityException("Unable to lookup
AuthenticationManager");
+ throw new SecurityException("Unable to lookup AuthenticationManager using
JNDI");
}
}
+
+ public AuthenticationManager getManager(String securityDomainName)
+ {
+ SecurityFactory.prepare();
+ try
+ {
+ return SecurityFactory.getAuthenticationManager(securityDomainName);
+ }
+ catch (Exception ex) {
+ throw new SecurityException("Unable to get Authentication Manager",
ex);
+ }
+ finally
+ {
+ SecurityFactory.release();
+ }
+ }
+
}
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java 2010-05-31
11:45:13 UTC (rev 12404)
@@ -31,10 +31,9 @@
import org.apache.cxf.ws.security.wss4j.AbstractUsernameTokenAuthenticatingInterceptor;
import org.jboss.logging.Logger;
import org.jboss.security.AuthenticationManager;
-import org.jboss.wsf.spi.SPIProvider;
-import org.jboss.wsf.spi.SPIProviderResolver;
-import org.jboss.wsf.spi.invocation.SecurityAdaptor;
-import org.jboss.wsf.spi.invocation.SecurityAdaptorFactory;
+import org.picketbox.config.PicketBoxConfiguration;
+import org.picketbox.exceptions.ConfigurationStreamNullException;
+import org.picketbox.factories.SecurityFactory;
/**
* Interceptor which authenticates a current principal and populates Subject
@@ -45,8 +44,11 @@
public class SubjectCreatingInterceptor extends
AbstractUsernameTokenAuthenticatingInterceptor
{
private static final Logger log = Logger.getLogger(SubjectCreatingInterceptor.class);
- private SecurityAdaptorFactory secAdaptorFactory;
-
+ private static final String DEFAULT_SECURITY_DOMAIN_NAME = "JBossWS";
+
+ private AuthenticationManagerLoader aml = null;
+ private String securityDomainName = DEFAULT_SECURITY_DOMAIN_NAME;
+
public SubjectCreatingInterceptor()
{
this(Collections.<String, Object> emptyMap());
@@ -55,17 +57,6 @@
public SubjectCreatingInterceptor(Map<String, Object> properties)
{
super(properties);
- SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
- secAdaptorFactory = spiProvider.getSPI(SecurityAdaptorFactory.class);
- }
-
- @Override
- public Subject createSubject(String name, String password, boolean isDigest, String
nonce, String created)
- {
- // Load AuthenticationManager
- // TODO : use PicketBox API
-
- AuthenticationManagerLoader aml = null;
try
{
aml = AuthenticationManagerLoader.class.newInstance();
@@ -76,16 +67,21 @@
log.error(msg);
throw new SecurityException(msg);
}
+ }
- AuthenticationManager am = aml.getManager();
-
- // verify timestamp and nonce if digest
- if (isDigest)
- {
+ @Override
+ public Subject createSubject(String name, String password, boolean isDigest, String
nonce, String created)
+ {
+
+ AuthenticationManager am = aml.getManager(securityDomainName);
+
+ // verify timestamp and nonce if digest
+ //if (isDigest)
+ //{
//verifyUsernameToken(nonce, created);
// CallbackHandler cb = new UsernameTokenCallbackHandler(nonce, created);
// CallbackHandlerPolicyContextHandler.setCaallbackHandler(cb);
- }
+ //}
// authenticate and populate Subject
@@ -102,19 +98,56 @@
log.error(msg);
throw new SecurityException(msg);
}
-
- // push subject on the thread local storage
- SecurityAdaptor adaptor = secAdaptorFactory.newSecurityAdapter();
- adaptor.setPrincipal(principal);
- adaptor.setCredential(password);
- adaptor.pushSubjectContext(subject, principal, password);
-
+
if (TRACE)
log.trace("Authenticated, principal=" + name);
return subject;
}
+ /**
+ * Loads a custom configuration file, can be used to add the configuration
+ * for new domains or override the default ones configured by JBoss AS
+ *
+ * Note : loading a custom configuration file may affect other endpoints running
+ * in the same container instance. Example, if some other endpoint depends on
+ * a default JBossWS security domain and this custom config file overrides JBossWS
+ * then the other endpoint may get affected
+ *
+ * @param configFilePath location of the custom configuration file
+ */
+ public void setSecurityConfigFile(String configFilePath)
+ {
+ SecurityFactory.prepare();
+ try
+ {
+ PicketBoxConfiguration idtrustConfig = new PicketBoxConfiguration();
+ idtrustConfig.load(configFilePath);
+ }
+ catch (ConfigurationStreamNullException ex) {
+ throw new SecurityException("Unable to load the configuration file " +
configFilePath);
+ }
+ catch (Exception ex) {
+ throw new SecurityException("Unable to read the configuration file " +
configFilePath, ex);
+ }
+ finally
+ {
+ SecurityFactory.release();
+ }
+ }
+
+ /**
+ * Sets the security domain name. This property has to be set when loading
+ * a custom configuration file. It also can be used to override the default
+ * security domain name (JBossWS)
+ * @param domainName
+ */
+ public void setSecurityDomainName(String domainName) {
+ securityDomainName = domainName;
+ }
+
+
+
/** TODO: JBWS-3028
private static final int TIMESTAMP_FRESHNESS_THRESHOLD = 300;
private NonceStore nonceStore;
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2010-05-31
08:41:17 UTC (rev 12403)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2010-05-31
11:45:13 UTC (rev 12404)
@@ -191,11 +191,12 @@
<classes dir="${tests.output.dir}/test-classes">
<include
name="org/jboss/test/ws/jaxws/samples/wsse/Service*.class"/>
<include
name="org/jboss/test/ws/jaxws/samples/wsse/jaxws/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/wsse/SubjectCreatingInterceptor.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/wsse/AuthenticationManagerLoader.class"/>
</classes>
<webinf
dir="${tests.output.dir}/test-resources/jaxws/samples/wsse/username-authorize/WEB-INF">
<include name="jboss-web.xml"/>
+ <include name="login-config.xml"/>
+ <include name="users.properties"/>
+ <include name="roles.properties"/>
<include name="jbossws-cxf.xml"/>
<include name="wsdl/*"/>
</webinf>
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/ServiceImpl.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/ServiceImpl.java 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/ServiceImpl.java 2010-05-31
11:45:13 UTC (rev 12404)
@@ -25,7 +25,6 @@
@WebService
(
- portName = "SecurityServicePort",
serviceName = "SecurityService",
wsdlLocation = "WEB-INF/wsdl/SecurityService.wsdl",
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wssecurity",
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernameAuthorizationTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernameAuthorizationTestCase.java 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernameAuthorizationTestCase.java 2010-05-31
11:45:13 UTC (rev 12404)
@@ -46,8 +46,12 @@
*/
public final class UsernameAuthorizationTestCase extends JBossWSTest
{
- private final String serviceURL = "http://" + getServerHost() +
":8080/jaxws-samples-wsse-username-authorize";
-
+ private final String serviceURL = "http://" + getServerHost() +
":8080/jaxws-samples-wsse-username-authorize/default-config";
+ private final String serviceURL2 = "http://" + getServerHost() +
":8080/jaxws-samples-wsse-username-authorize/custom-config";
+
+ private final QName servicePort = new
QName("http://www.jboss.org/jbossws/ws-extensions/wssecurity",
"SecurityServicePort");
+ private final QName servicePort2 = new
QName("http://www.jboss.org/jbossws/ws-extensions/wssecurity",
"SecurityServicePort2");
+
public static Test suite()
{
return new JBossWSTestSetup(UsernameAuthorizationTestCase.class,
"jaxws-samples-wsse-username-authorize.war");
@@ -55,14 +59,24 @@
public void testAuthorized() throws Exception
{
+ doTestAuthorized(serviceURL, servicePort, "kermit");
+ }
+
+ public void testAuthorizedCustomConfig() throws Exception
+ {
+ doTestAuthorized(serviceURL2, servicePort2, "theKermit");
+ }
+
+ private void doTestAuthorized(String endpointAddress, QName portName, String userName)
throws Exception
+ {
QName serviceName = new
QName("http://www.jboss.org/jbossws/ws-extensions/wssecurity",
"SecurityService");
- URL wsdlURL = new URL(serviceURL + "?wsdl");
+ URL wsdlURL = new URL(endpointAddress + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class);
- setupWsse(proxy, "kermit");
+ ServiceIface proxy = (ServiceIface)service.getPort(portName, ServiceIface.class);
+ setupWsse(proxy, userName);
assertEquals("Secure Hello World!", proxy.sayHello());
}
-
+
public void testUnauthenticated() throws Exception
{
QName serviceName = new
QName("http://www.jboss.org/jbossws/ws-extensions/wssecurity",
"SecurityService");
@@ -83,11 +97,21 @@
public void testUnauthorized() throws Exception
{
+ doTestUnauthorized(serviceURL, servicePort, "kermit");
+ }
+
+ public void testUnauthorizedCustomConfig() throws Exception
+ {
+ doTestUnauthorized(serviceURL2, servicePort2, "theKermit");
+ }
+
+ private void doTestUnauthorized(String endpointAddress, QName portName, String
userName) throws Exception
+ {
QName serviceName = new
QName("http://www.jboss.org/jbossws/ws-extensions/wssecurity",
"SecurityService");
- URL wsdlURL = new URL(serviceURL + "?wsdl");
+ URL wsdlURL = new URL(endpointAddress + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class);
- setupWsse(proxy, "kermit");
+ ServiceIface proxy = (ServiceIface)service.getPort(portName, ServiceIface.class);
+ setupWsse(proxy, userName);
try
{
proxy.greetMe();
@@ -98,7 +122,7 @@
assertEquals("Unauthorized", ex.getMessage());
}
}
-
+
private void setupWsse(ServiceIface proxy, String username)
{
Client client = ClientProxy.getClient(proxy);
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernamePasswordCallback.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernamePasswordCallback.java 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/UsernamePasswordCallback.java 2010-05-31
11:45:13 UTC (rev 12404)
@@ -35,6 +35,8 @@
WSPasswordCallback pc = (WSPasswordCallback)callbacks[0];
if ("kermit".equals(pc.getIdentifier()))
pc.setPassword("thefrog");
+ else if ("theKermit".equals(pc.getIdentifier()))
+ pc.setPassword("thefrog2");
else
pc.setPassword("wrong password");
}
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/jbossws-cxf.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/jbossws-cxf.xml 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/jbossws-cxf.xml 2010-05-31
11:45:13 UTC (rev 12404)
@@ -32,14 +32,49 @@
<jaxws:endpoint
id='ServiceImpl'
-
address='http://@jboss.bind.address@:8080/jaxws-samples-wsse-username-authorize'
- implementor='org.jboss.test.ws.jaxws.samples.wsse.ServiceImpl'>
+
address='http://@jboss.bind.address@:8080/jaxws-samples-wsse-username-authorize/default-config'
+ implementor='org.jboss.test.ws.jaxws.samples.wsse.ServiceImpl'
+ endpointName="ns:SecurityServicePort"
+ serviceName="ns:SecurityService"
+
xmlns:ns="http://www.jboss.org/jbossws/ws-extensions/wssecurity"...
<jaxws:inInterceptors>
<ref bean="SecurityContextIn"/>
<ref bean="AuthorizeIn"/>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
</jaxws:inInterceptors>
</jaxws:endpoint>
+
+ <bean id="SecurityContextIn2"
class="org.jboss.wsf.stack.cxf.security.authentication.SubjectCreatingInterceptor">
+ <constructor-arg>
+ <map>
+ <entry key="action" value="UsernameToken"/>
+ </map>
+ </constructor-arg>
+ <property name="securityConfigFile"
value="login-config.xml"/>
+ <property name="securityDomainName" value="custom"/>
+ </bean>
+
+ <util:map id="methodPermissions2">
+ <entry key="sayHello" value="theFriends"/>
+ <entry key="greetMe" value="theSnoopies"/>
+ </util:map>
+
+ <bean id="AuthorizeIn2"
class="org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor">
+ <property name="methodRolesMap" ref="methodPermissions2"/>
+ </bean>
-
+ <jaxws:endpoint
+ id='ServiceImpl2'
+
address='http://@jboss.bind.address@:8080/jaxws-samples-wsse-username-authorize/custom-config'
+ implementor='org.jboss.test.ws.jaxws.samples.wsse.ServiceImpl'
+ endpointName="ns:SecurityServicePort2"
+ serviceName="ns:SecurityService"
+
xmlns:ns="http://www.jboss.org/jbossws/ws-extensions/wssecurity"...
+ <jaxws:inInterceptors>
+ <ref bean="SecurityContextIn2"/>
+ <ref bean="AuthorizeIn2"/>
+ <bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
+ </jaxws:inInterceptors>
+ </jaxws:endpoint>
+
</beans>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/login-config.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/login-config.xml
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/login-config.xml 2010-05-31
11:45:13 UTC (rev 12404)
@@ -0,0 +1,16 @@
+<?xml version='1.0'?>
+
+<policy xmlns="urn:jboss:security-config:5.0"
+>
+
+ <application-policy name="custom">
+ <authentication>
+ <login-module
code="org.jboss.security.auth.spi.UsersRolesLoginModule"
+ flag="required">
+ </login-module>
+ </authentication>
+ </application-policy>
+
+
+</policy>
+
Property changes on:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/login-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/roles.properties
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/roles.properties
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/roles.properties 2010-05-31
11:45:13 UTC (rev 12404)
@@ -0,0 +1,2 @@
+# A sample roles.properties file for use with the UsersRolesLoginModule
+theKermit=theFriends
Property changes on:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/roles.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/users.properties
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/users.properties
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/users.properties 2010-05-31
11:45:13 UTC (rev 12404)
@@ -0,0 +1,2 @@
+# A sample users.properties file for use with the UsersRolesLoginModule
+theKermit=thefrog2
Property changes on:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/users.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/web.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/web.xml 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/web.xml 2010-05-31
11:45:13 UTC (rev 12404)
@@ -4,12 +4,24 @@
version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
<servlet>
<servlet-name>TestService</servlet-name>
<servlet-class>org.jboss.test.ws.jaxws.samples.wsse.ServiceImpl</servlet-class>
</servlet>
+
+ <servlet>
+ <servlet-name>TestService2</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.samples.wsse.ServiceImpl</servlet-class>
+ </servlet>
+
<servlet-mapping>
<servlet-name>TestService</servlet-name>
- <url-pattern>/*</url-pattern>
+ <url-pattern>/default-config/*</url-pattern>
</servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>TestService2</servlet-name>
+ <url-pattern>/custom-config/*</url-pattern>
+ </servlet-mapping>
</web-app>
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/wsdl/SecurityService.wsdl
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/wsdl/SecurityService.wsdl 2010-05-31
08:41:17 UTC (rev 12403)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/username-authorize/WEB-INF/wsdl/SecurityService.wsdl 2010-05-31
11:45:13 UTC (rev 12404)
@@ -54,7 +54,10 @@
</binding>
<service name="SecurityService">
<port name="SecurityServicePort"
binding="tns:SecurityServicePortBinding">
- <soap:address
location="http://@jboss.bind.address@:8080/jaxws-samples-wsse-username-authorize"/>
+ <soap:address
location="http://@jboss.bind.address@:8080/jaxws-samples-wsse-username-authorize/default-config"/>
</port>
+ <port name="SecurityServicePort2"
binding="tns:SecurityServicePortBinding">
+ <soap:address
location="http://@jboss.bind.address@:8080/jaxws-samples-wsse-username-authorize/custom-config"/>
+ </port>
</service>
</definitions>
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2010-05-31 08:41:17 UTC (rev 12403)
+++ stack/cxf/trunk/pom.xml 2010-05-31 11:45:13 UTC (rev 12404)
@@ -64,6 +64,7 @@
<jboss.common.core.version>2.2.16.GA</jboss.common.core.version>
<jboss.logging.version>2.2.0.CR1</jboss.logging.version>
<jboss.security.spi.version>2.0.4.SP4</jboss.security.spi.version>
+ <picketbox.version>3.0.0.Beta5</picketbox.version>
<jaxb.api.version>1.0.0.Beta1</jaxb.api.version>
<jaxb.impl.version>2.2</jaxb.impl.version>
<jaxrpc.api.version>1.1</jaxrpc.api.version>
@@ -82,7 +83,6 @@
<xmlsec.version>1.4.3</xmlsec.version>
<wstx.version>3.2.9</wstx.version>
<spring.version>3.0.1.RELEASE</spring.version>
-
</properties>
@@ -543,6 +543,22 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.picketbox</groupId>
+ <artifactId>picketbox-bare</artifactId>
+ <version>${picketbox.version}</version>
+ <scope>provided</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jbosssx</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
<groupId>org.jboss.security</groupId>
<artifactId>jboss-security-spi</artifactId>
<version>${jboss.security.spi.version}</version>