Log an error message if CAS principle has no corresponding Confluence principle.

This commit is contained in:
eghm 2016-09-15 13:57:11 -10:00
parent 527f0c6d28
commit 2ae54e8d98
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ public final class ConfluenceCasAuthenticator extends ConfluenceAuthenticator {
if (assertion != null) {
final Principal p = getUser(assertion.getPrincipal().getName());
// user doesn't exist
if (p == null) {
LOGGER.error("Principal is null for " + assertion.getPrincipal().getName());
}
LOGGER.debug("Logging in [{}] from CAS.", p.getName());
session.setAttribute(LOGGED_IN_KEY, p);