Commit d537c8ec authored by Brian Long's avatar Brian Long
Browse files

logging authority for debugging

parent f1755683
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -40,8 +40,11 @@ public abstract class AbstractWebScript extends org.springframework.extensions.w
				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");
		} else {
			this.logger.debug("Allowing only authorities: {}", this.authorizedAuthorities);
		}
	}
	
	protected Set<String> getAuthorities() {
@@ -66,6 +69,7 @@ public abstract class AbstractWebScript extends org.springframework.extensions.w
				return true;
		}
		
		this.logger.trace("Not authorized: user '{}'; authorities: {}", AuthenticationUtil.getFullyAuthenticatedUser(), AuthenticationUtil.getFullAuthentication().getAuthorities());
		return false;
	}
	
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
# defaulting to 3 days = 60 * 24 * 3 = 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
inteligr8.asie.basePath=/solr