Better error message. Bugzilla #310
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 11 May 2005 18:22:46 +0000 (18:22 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 11 May 2005 18:22:46 +0000 (18:22 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1468 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/provider/ShibbolethV1SSOHandler.java

index 05e7a8f..5e7b932 100644 (file)
@@ -118,7 +118,8 @@ public class ShibbolethV1SSOHandler extends SSOHandler implements IdPProtocolHan
                        String username = support.getIdPConfig().getAuthHeaderName().equalsIgnoreCase("REMOTE_USER") ? request
                                        .getRemoteUser() : request.getHeader(support.getIdPConfig().getAuthHeaderName());
                        if ((username == null) || (username.equals(""))) { throw new InvalidClientDataException(
-                                       "Unable to authenticate remote user"); }
+                                       "Unauthenticated principal. This protocol handler requires that authentication information be "
+                                                       + "provided from the servlet container."); }
                        LocalPrincipal principal = new LocalPrincipal(username);
 
                        // Select the appropriate Relying Party configuration for the request