incorrect check for authenticated user
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Jul 2007 21:09:51 +0000 (21:09 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Jul 2007 21:09:51 +0000 (21:09 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2300 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 0e5e568..b10d28a 100644 (file)
@@ -220,7 +220,7 @@ public class SSOProfileHandler extends AbstractSAML2ProfileHandler {
 
         Response samlResponse;
         try {
 
         Response samlResponse;
         try {
-            if (!loginContext.isPrincipalAuthenticated()) {
+            if (loginContext.getPrincipalName() == null) {
                 requestContext
                         .setFailureStatus(buildStatus(StatusCode.RESPONDER_URI, StatusCode.AUTHN_FAILED_URI, null));
                 throw new ProfileException("User failed authentication");
                 requestContext
                         .setFailureStatus(buildStatus(StatusCode.RESPONDER_URI, StatusCode.AUTHN_FAILED_URI, null));
                 throw new ProfileException("User failed authentication");