logging authority for debugging

This commit is contained in:
2025-01-09 11:05:46 -05:00
parent f17556835a
commit d537c8ec49
2 changed files with 6 additions and 2 deletions

View File

@@ -40,8 +40,11 @@ public abstract class AbstractWebScript extends org.springframework.extensions.w
this.authorizedAuthorities.add(authority); this.authorizedAuthorities.add(authority);
} }
if (this.authorizedAuthorities.isEmpty()) if (this.authorizedAuthorities.isEmpty()) {
this.logger.warn("All authenticated users will be authorized to access web scripts"); this.logger.warn("All authenticated users will be authorized to access web scripts");
} else {
this.logger.debug("Allowing only authorities: {}", this.authorizedAuthorities);
}
} }
protected Set<String> getAuthorities() { protected Set<String> getAuthorities() {
@@ -66,6 +69,7 @@ public abstract class AbstractWebScript extends org.springframework.extensions.w
return true; return true;
} }
this.logger.trace("Not authorized: user '{}'; authorities: {}", AuthenticationUtil.getFullyAuthenticatedUser(), AuthenticationUtil.getFullAuthentication().getAuthorities());
return false; return false;
} }

View File

@@ -2,7 +2,7 @@
# defaulting to 3 days = 60 * 24 * 3 = 4320 # defaulting to 3 days = 60 * 24 * 3 = 4320
inteligr8.asie.backup.persistTimeMinutes=4320 inteligr8.asie.backup.persistTimeMinutes=4320
inteligr8.asie.allowedAuthorities=ALFRESCO_ADMINISTRATORS inteligr8.asie.allowedAuthorities=GROUP_ALFRESCO_ADMINISTRATORS
# same as solr.baseUrl, but that property is private to the Search subsystem # same as solr.baseUrl, but that property is private to the Search subsystem
inteligr8.asie.basePath=/solr inteligr8.asie.basePath=/solr