Skip to content

Commit

Permalink
Use subject for header, not only the name
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jan 14, 2025
1 parent 21bc3d9 commit 0531f35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected <Request extends ActionRequest, Response extends ActionResponse> void
) {
ThreadContext threadContext = threadPool().getThreadContext();
try (ThreadContext.StoredContext ctx = threadContext.stashContext()) {
threadContext.putTransient(SUBJECT_TRANSIENT_NAME, subject.getPrincipal().getName());
threadContext.putTransient(SUBJECT_TRANSIENT_NAME, subject);
logger.info("Running transport action with subject: {}", subject.getPrincipal().getName());
super.doExecute(action, request, ActionListener.runBefore(listener, ctx::restore));
}
Expand Down

0 comments on commit 0531f35

Please sign in to comment.