Log an error message if CAS principle has no corresponding Confluence principle.
This commit is contained in:
parent
6f05fe0e28
commit
3f7d7e9309
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue