Populate request context with relying party ID from artifact map entry
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 14 Sep 2007 19:59:33 +0000 (19:59 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 14 Sep 2007 19:59:33 +0000 (19:59 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2395 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/saml1/ArtifactResolution.java

index 0482549..260656e 100644 (file)
@@ -163,8 +163,11 @@ public class ArtifactResolution extends AbstractSAML1ProfileHandler {
         } finally {
             // Set as much information as can be retrieved from the decoded message
             try {
-                String relyingPartyId = requestContext.getInboundMessageIssuer();
+                AbstractSAML1Artifact artifact = requestContext.getArtifacts().iterator().next();
+                SAMLArtifactMapEntry artifactEntry = artifactMap.get(artifact.getArtifactBytes());
+                String relyingPartyId = artifactEntry.getRelyingPartyId();
 
+                requestContext.setInboundMessageIssuer(relyingPartyId);
                 RelyingPartyConfiguration rpConfig = getRelyingPartyConfiguration(relyingPartyId);
                 requestContext.setRelyingPartyConfiguration(rpConfig);