Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I added these lines to ExternalAuthHelper.getExternalAuthId(), right after the check for a null request object:

Code Block
Principal p = request.getUserPrincipal();
if (p != null) {
 log.debug("Found a UserPrincipal in the request: " + p);
 String userId = p.getName();
 if (StringUtils.isNotEmpty(userId)) {
 log.debug("Got external auth from UserPrincipal: " + userId);
 return userId;
 }
}
Panel

Principal p = request.getUserPrincipal();
if (p != null) {
log.debug("Found a UserPrincipal in the request: " + p);
String userId = p.getName();
if (StringUtils.isNotEmpty(userId)) {
log.debug("Got external auth from UserPrincipal: " + userId);
return userId;
}
}

...