Fixing failing jax-rs security tests
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/470d100e Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/470d100e Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/470d100e Branch: refs/heads/3.1.x-fixes Commit: 470d100e740cf25fac95f352b07abab746550652 Parents: 4c44d85 Author: Colm O hEigeartaigh <[email protected]> Authored: Thu Jul 13 11:48:05 2017 +0100 Committer: Colm O hEigeartaigh <[email protected]> Committed: Thu Jul 13 12:37:21 2017 +0100 ---------------------------------------------------------------------- .../org/apache/cxf/systest/jaxrs/security/saml/secureServer.xml | 3 +++ .../org/apache/cxf/systest/jaxrs/security/saml/server.xml | 3 +++ 2 files changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/470d100e/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/secureServer.xml ---------------------------------------------------------------------- diff --git a/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/secureServer.xml b/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/secureServer.xml index 98fd154..cdf0430 100644 --- a/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/secureServer.xml +++ b/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/secureServer.xml @@ -59,6 +59,7 @@ under the License. </jaxrs:providers> <jaxrs:properties> <entry key="security.enable.unsigned-saml-assertion.principal" value="true"/> + <entry key="security.audience-restrictions" value="https://sp.example.com/SAML2"/> </jaxrs:properties> <!-- If default role qualifier and format are not supported: @@ -96,6 +97,7 @@ under the License. </jaxrs:providers> <jaxrs:properties> <entry key="security.enable.unsigned-saml-assertion.principal" value="true"/> + <entry key="security.audience-restrictions" value="https://sp.example.com/SAML2"/> </jaxrs:properties> </jaxrs:server> <jaxrs:server address="https://localhost:${testutil.ports.jaxrs-saml}/saml-claims"> @@ -108,6 +110,7 @@ under the License. </jaxrs:providers> <jaxrs:properties> <entry key="security.enable.unsigned-saml-assertion.principal" value="true"/> + <entry key="security.audience-restrictions" value="https://sp.example.com/SAML2"/> </jaxrs:properties> </jaxrs:server> </beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/470d100e/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/server.xml ---------------------------------------------------------------------- diff --git a/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/server.xml b/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/server.xml index fcb64c8..8cc2ae4 100644 --- a/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/server.xml +++ b/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/saml/server.xml @@ -51,6 +51,7 @@ under the License. </jaxrs:providers> <jaxrs:properties> <entry key="security.signature.properties" value="org/apache/cxf/systest/jaxrs/security/alice.properties"/> + <entry key="security.audience-restrictions" value="https://sp.example.com/SAML2"/> </jaxrs:properties> </jaxrs:server> <jaxrs:server address="https://localhost:${testutil.ports.jaxrs-saml}/samlform"> @@ -62,6 +63,7 @@ under the License. </jaxrs:providers> <jaxrs:properties> <entry key="security.signature.properties" value="org/apache/cxf/systest/jaxrs/security/alice.properties"/> + <entry key="security.audience-restrictions" value="https://sp.example.com/SAML2"/> </jaxrs:properties> </jaxrs:server> <jaxrs:server address="https://localhost:${testutil.ports.jaxrs-saml}/samlxml"> @@ -74,6 +76,7 @@ under the License. </jaxrs:providers> <jaxrs:properties> <entry key="security.signature.properties" value="org/apache/cxf/systest/jaxrs/security/alice.properties"/> + <entry key="security.audience-restrictions" value="https://sp.example.com/SAML2"/> </jaxrs:properties> </jaxrs:server> </beans>
