Skip to content

Commit

Permalink
fix: log resource when doing group-based override (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrehu authored Sep 24, 2024
1 parent 689916c commit 88e7458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() + "\"");
}
}
}
Expand Down

0 comments on commit 88e7458

Please sign in to comment.