From 88e7458de9f61188dfb9b1174840afe4291dde2c Mon Sep 17 00:00:00 2001 From: "Sverre H. Huseby" Date: Tue, 24 Sep 2024 09:14:53 +0200 Subject: [PATCH] fix: log resource when doing group-based override (#74) --- .../statnett/k3a/authz/ldap/AuthorizationResultOverrider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/statnett/k3a/authz/ldap/AuthorizationResultOverrider.java b/src/main/java/io/statnett/k3a/authz/ldap/AuthorizationResultOverrider.java index 6a8818b..97cb86a 100644 --- a/src/main/java/io/statnett/k3a/authz/ldap/AuthorizationResultOverrider.java +++ b/src/main/java/io/statnett/k3a/authz/ldap/AuthorizationResultOverrider.java @@ -62,7 +62,7 @@ private static void overrideResultsByGroup(final Authorizer authorizer, final Au final AuthorizationResult alternativeResult = authorize(authorizer, groupsForUser, action); if (alternativeResult != originalResult && (alternativeResult == AuthorizationResult.ALLOWED || alternativeResult == AuthorizationResult.DENIED)) { results.set(q, alternativeResult); - LOG.info("*** Overriding " + originalResult + ", changing to " + alternativeResult + " due to matching group rule for \"" + principal + "\""); + LOG.info("*** Overriding " + originalResult + ", changing to " + alternativeResult + " due to matching group rule for \"" + principal + "\" on \"" + action.resourcePattern().name() + "\""); } } }