From commits-return-48458-archive-asf-public=cust-asf.ponee.io@cxf.apache.org Tue Jan 16 19:00:00 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 502EB18065B for ; Tue, 16 Jan 2018 19:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 40B22160C34; Tue, 16 Jan 2018 18:00:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39887160C1D for ; Tue, 16 Jan 2018 18:59:59 +0100 (CET) Received: (qmail 59038 invoked by uid 500); 16 Jan 2018 17:59:58 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 59029 invoked by uid 99); 16 Jan 2018 17:59:58 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2018 17:59:58 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C1B578201A; Tue, 16 Jan 2018 17:59:55 +0000 (UTC) Date: Tue, 16 Jan 2018 17:59:55 +0000 To: "commits@cxf.apache.org" Subject: [cxf] branch master updated: Added EndorsingSupportingToken/IssuedToken SymmetricKey test MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151612559507.22105.5716956523351616699@gitbox.apache.org> From: coheigea@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: cxf X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 5f91cf1cbf2a4310a69c156f7de60a07cb728c75 X-Git-Newrev: dae5b16c80b4a8e4926e29e901b3c8477cec71b8 X-Git-Rev: dae5b16c80b4a8e4926e29e901b3c8477cec71b8 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cxf.git The following commit(s) were added to refs/heads/master by this push: new dae5b16 Added EndorsingSupportingToken/IssuedToken SymmetricKey test dae5b16 is described below commit dae5b16c80b4a8e4926e29e901b3c8477cec71b8 Author: Colm O hEigeartaigh AuthorDate: Tue Jan 16 17:55:39 2018 +0000 Added EndorsingSupportingToken/IssuedToken SymmetricKey test --- .../sts/transport/TransportBindingTest.java | 29 +++++++ .../apache/cxf/systest/sts/transport/DoubleIt.wsdl | 92 ++++++++++++++++++++++ .../cxf/systest/sts/transport/cxf-client.xml | 9 +++ .../cxf/systest/sts/transport/cxf-service.xml | 7 ++ .../cxf/systest/sts/transport/cxf-stax-service.xml | 9 +++ 5 files changed, 146 insertions(+) diff --git a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java index 0eca7f7..49def3e 100644 --- a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java +++ b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java @@ -419,6 +419,35 @@ public class TransportBindingTest extends AbstractBusClientServerTestBase { bus.shutdown(true); } + @org.junit.Test + public void testSAML2EndorsingSymmetric() throws Exception { + + SpringBusFactory bf = new SpringBusFactory(); + URL busFile = TransportBindingTest.class.getResource("cxf-client.xml"); + + Bus bus = bf.createBus(busFile.toString()); + BusFactory.setDefaultBus(bus); + BusFactory.setThreadDefaultBus(bus); + + URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl"); + Service service = Service.create(wsdl, SERVICE_QNAME); + QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML2SymmetricEndorsingPort"); + DoubleItPortType transportSaml1Port = + service.getPort(portQName, DoubleItPortType.class); + updateAddressPort(transportSaml1Port, test.getPort()); + + TokenTestUtils.updateSTSPort((BindingProvider)transportSaml1Port, test.getStsPort()); + + if (test.isStreaming()) { + SecurityTestUtil.enableStreaming(transportSaml1Port); + } + + doubleIt(transportSaml1Port, 25); + + ((java.io.Closeable)transportSaml1Port).close(); + bus.shutdown(true); + } + private DOMSource createDOMRequest() throws ParserConfigurationException { // Creating a DOMSource Object for the request DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); diff --git a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/DoubleIt.wsdl b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/DoubleIt.wsdl index fe0e803..083f672 100644 --- a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/DoubleIt.wsdl +++ b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/DoubleIt.wsdl @@ -79,6 +79,21 @@ + + + + + + + + + + + + + + + @@ -93,6 +108,10 @@ binding="tns:DoubleItTransportSAML2X509EndorsingBinding"> + + + @@ -373,6 +392,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0 + http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey + + + + + + + http://localhost:8080/STS/STSUT + + + + + + http://localhost:8080/SecurityTokenService/UT/mex + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-client.xml b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-client.xml index f6d0912..1606d31 100644 --- a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-client.xml +++ b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-client.xml @@ -28,6 +28,7 @@ + @@ -80,6 +81,14 @@ + + + + + + + + diff --git a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-service.xml b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-service.xml index 84a0288..d2d09da 100644 --- a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-service.xml +++ b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-service.xml @@ -52,6 +52,13 @@ + + + + + + + diff --git a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml index 6a7eef7..1b3607c 100644 --- a/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml +++ b/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml @@ -57,6 +57,15 @@ + + + + + + + -- To stop receiving notification emails like this one, please contact ['"commits@cxf.apache.org" '].