invoke endpoint selector after setting it all up
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 9 Mar 2008 18:23:27 +0000 (18:23 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 9 Mar 2008 18:23:27 +0000 (18:23 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2682 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSOProfileHandler.java
src/edu/internet2/middleware/shibboleth/idp/profile/saml2/SSOProfileHandler.java

index e4b13c7..25013fc 100644 (file)
@@ -369,6 +369,7 @@ public class ShibbolethSSOProfileHandler extends AbstractSAML1ProfileHandler {
             endpointSelector.setEntityRoleMetadata(requestContext.getPeerEntityRoleMetadata());
             endpointSelector.setSamlRequest(requestContext.getInboundSAMLMessage());
             endpointSelector.getSupportedIssuerBindings().addAll(getSupportedOutboundBindings());
+            endpoint = endpointSelector.selectEndpoint();
         }
 
         return endpoint;
index e0d7300..784bab1 100644 (file)
@@ -532,6 +532,7 @@ public class SSOProfileHandler extends AbstractSAML2ProfileHandler {
             endpointSelector.setEntityRoleMetadata(requestContext.getPeerEntityRoleMetadata());
             endpointSelector.setSamlRequest(requestContext.getInboundSAMLMessage());
             endpointSelector.getSupportedIssuerBindings().addAll(getSupportedOutboundBindings());
+            endpoint = endpointSelector.selectEndpoint();
         }
 
         return endpoint;