Be sure to use inbound message issuer and not peer Id
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / profile / saml1 / AbstractSAML1ProfileHandler.java
index 6957281..98c938d 100644 (file)
@@ -188,7 +188,7 @@ public abstract class AbstractSAML1ProfileHandler extends AbstractSAMLProfileHan
             requestContext.setUserSession(userSession);
             requestContext.setPrincipalName(userSession.getPrincipalName());
             requestContext.setPrincipalAuthenticationMethod(userSession.getServicesInformation().get(
-                    requestContext.getPeerEntityId()).getAuthenticationMethod().getAuthenticationMethod());
+                    requestContext.getInboundMessageIssuer()).getAuthenticationMethod().getAuthenticationMethod());
         }
     }