Merge pull request #4268 from hmlnarik/KEYCLOAK-5106-BasicSamlTest-testNoPortInDestination-fails-on-auth-server-wildfly

KEYCLOAK-5106 Fix BasicSamlTest on auth-server-wildfly
This commit is contained in:
Stian Thorgersen 2017-06-29 05:13:21 +02:00 committed by GitHub
commit 0b108d83af
2 changed files with 13 additions and 1 deletions

View file

@ -36,6 +36,15 @@
</provider> </provider>
</spi> </spi>
</xsl:variable> </xsl:variable>
<xsl:variable name="samlPortsDefinition">
<spi name="login-protocol">
<provider name="saml" enabled="true">
<properties>
<property name="knownProtocols" value="[&quot;http=${{auth.server.http.port}}&quot;,&quot;https=${{auth.server.https.port}}&quot;]"/>
</properties>
</provider>
</spi>
</xsl:variable>
<xsl:variable name="themeModuleDefinition"> <xsl:variable name="themeModuleDefinition">
<modules> <modules>
<module>org.keycloak.testsuite.integration-arquillian-testsuite-providers</module> <module>org.keycloak.testsuite.integration-arquillian-testsuite-providers</module>
@ -60,11 +69,12 @@
</xsl:copy> </xsl:copy>
</xsl:template> </xsl:template>
<!--inject truststore--> <!--inject truststore and SAML port-protocol mappings-->
<xsl:template match="//*[local-name()='subsystem' and starts-with(namespace-uri(), $nsKS)]"> <xsl:template match="//*[local-name()='subsystem' and starts-with(namespace-uri(), $nsKS)]">
<xsl:copy> <xsl:copy>
<xsl:apply-templates select="@*|node()" /> <xsl:apply-templates select="@*|node()" />
<xsl:copy-of select="$truststoreDefinition"/> <xsl:copy-of select="$truststoreDefinition"/>
<xsl:copy-of select="$samlPortsDefinition"/>
</xsl:copy> </xsl:copy>
</xsl:template> </xsl:template>

View file

@ -68,6 +68,8 @@
<property name="jbossArguments"> <property name="jbossArguments">
-Djboss.socket.binding.port-offset=${auth.server.port.offset} -Djboss.socket.binding.port-offset=${auth.server.port.offset}
-Djboss.bind.address=0.0.0.0 -Djboss.bind.address=0.0.0.0
-Dauth.server.http.port=${auth.server.http.port}
-Dauth.server.https.port=${auth.server.https.port}
${adapter.test.props} ${adapter.test.props}
${migration.import.properties} ${migration.import.properties}
${auth.server.profile} ${auth.server.profile}