• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

medplum / medplum / 26894454242 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 03:30PM UTC
Files 1030
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jun 2026 03:18PM UTC coverage: 92.579% (+0.001%) from 92.578%
26894454242.1

push

github

web-flow
feat(server): record authenticating ClientApplication on AuditEvent.agent[] (#9337)

The per-interaction AuditEvent only ever recorded a single agent (the acting
profile / author), so the authenticating ClientApplication was absent from the
audit trail. Under X-Medplum-On-Behalf-Of the acting client disappeared
entirely, leaving the event indistinguishable from the user acting directly;
the same gap applies to SMART-on-FHIR apps acting on behalf of a user.

Thread login.client through the repository context and append it as an
additional non-requestor agent[] participant (DICOM "Application" role) when it
differs from the actor. agent[0] is unchanged, so consumers assuming agent[0]
is the actor are unaffected. The client is omitted when it is itself the actor
(client_credentials) or absent (system path). This generalizes the dual-agent
attribution createBotAuditEvent already produces.

Closes #9332

Signed-off-by: Jesse Carter <jesse.r.carter@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

23624 of 26514 branches covered (89.1%)

Branch coverage included in aggregate %.

50979 of 54069 relevant lines covered (94.29%)

16437.89 hits per line

Source Files on job 26894454242.1
  • Tree
  • List 1030
  • Changed 162
  • Source Changed 3
  • Coverage Changed 162
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26894454242
  • 5e0a2cb1 on github
  • Prev Job for on main (#26863264953.1)
  • Next Job for on main (#26894794025.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc