git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1468
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
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