Skip to content

Commit

Permalink
Bug for overriding the request in the samlContext
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Mar 29, 2017
1 parent 7130e12 commit d6d8b88
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion mujina-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.openconext</groupId>
<artifactId>mujina</artifactId>
<version>5.0.1</version>
<version>5.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion mujina-idp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.openconext</groupId>
<artifactId>mujina</artifactId>
<version>5.0.1</version>
<version>5.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public SAMLMessageContext extractSAMLMessageContext(HttpServletRequest request,

proxiedSAMLContextProviderLB.populateGenericContext(request, response, messageContext);

messageContext.setInboundMessageTransport(new HttpServletRequestAdapter(request));
messageContext.setSecurityPolicyResolver(resolver);

SAMLMessageDecoder samlMessageDecoder = samlMessageDecoder(postRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ public SAMLMessageHandler samlMessageHandler(@Value("${idp.clock_skew}") int clo
HTTPRedirectDeflateDecoder httpRedirectDeflateDecoder = new HTTPRedirectDeflateDecoder(parserPool);
HTTPPostDecoder httpPostDecoder = new HTTPPostDecoder(parserPool);

if (environment.acceptsProfiles("test")) {
//Lenient URI comparision
URIComparator lenientURIComparator = (uri1, uri2) -> true;
httpRedirectDeflateDecoder.setURIComparator(lenientURIComparator);
httpPostDecoder.setURIComparator(lenientURIComparator);
}

parserPool.initialize();
HTTPPostSimpleSignEncoder httpPostSimpleSignEncoder = new HTTPPostSimpleSignEncoder(VelocityFactory.getEngine(), "/templates/saml2-post-simplesign-binding.vm", true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import static org.hamcrest.core.StringContains.containsString;

@TestPropertySource(properties = {"idp.expires:" + (Integer.MAX_VALUE / 2 - 1), "idp.clock_skew: " + (Integer.MAX_VALUE / 2 - 1)})
@ActiveProfiles(profiles = "test")
public class AuthenticationProviderTest extends AbstractIntegrationTest {

@Test
Expand Down
1 change: 0 additions & 1 deletion mujina-idp/src/test/java/mujina/idp/SsoControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static org.junit.Assert.assertTrue;

@TestPropertySource(properties = {"idp.expires:" + (Integer.MAX_VALUE / 2 - 1), "idp.clock_skew: " + (Integer.MAX_VALUE / 2 - 1)})
@ActiveProfiles(profiles = "test")
public class SsoControllerTest extends AbstractIntegrationTest {

private List<String[]> params = Arrays.asList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import static org.hamcrest.core.StringContains.containsString;

@TestPropertySource(properties = {"idp.expires:" + (Integer.MAX_VALUE / 2 - 1), "idp.clock_skew: " + (Integer.MAX_VALUE / 2 - 1)})
@ActiveProfiles(profiles = "test")
public class UserControllerTest extends AbstractIntegrationTest {

@Test
Expand Down
2 changes: 1 addition & 1 deletion mujina-sp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.openconext</groupId>
<artifactId>mujina</artifactId>
<version>5.0.1</version>
<version>5.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<groupId>org.openconext</groupId>
<artifactId>mujina</artifactId>
<version>5.0.1</version>
<version>5.0.2</version>
<packaging>pom</packaging>

<properties>
Expand Down

0 comments on commit d6d8b88

Please sign in to comment.